Skip to:
Content

BuddyPress.org

Changeset 7732


Ignore:
Timestamp:
01/09/2014 06:50:45 AM (11 years ago)
Author:
johnjamesjacoby
Message:

Pass 'string' rather than 'simple' as default parameters in bp_core_get_notifications_for_user() and bp_notifications_get_notifications_for_user(). Fixes #BB2508. (trunk)

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-members/bp-members-notifications.php

    r7627 r7732  
    115115 * @return boolean Object or array on success, false on fail
    116116 */
    117 function bp_core_get_notifications_for_user( $user_id, $format = 'simple' ) {
     117function bp_core_get_notifications_for_user( $user_id, $format = 'string' ) {
    118118
    119119    // Bail if notifications is not active
  • trunk/bp-notifications/bp-notifications-functions.php

    r7715 r7732  
    115115 *
    116116 * @param int $user_id ID of the user whose notification are being fetched.
    117  * @param string $format Format of the returned values. 'simple' returns HTML,
     117 * @param string $format Format of the returned values. 'string' returns HTML,
    118118 *        while 'object' returns a structured object for parsing.
    119119 * @return mixed Object or array on success, false on failure.
    120120 */
    121 function bp_notifications_get_notifications_for_user( $user_id, $format = 'simple' ) {
     121function bp_notifications_get_notifications_for_user( $user_id, $format = 'string' ) {
    122122
    123123    // Setup local variables
Note: See TracChangeset for help on using the changeset viewer.