Skip to:
Content

BuddyPress.org

Changeset 9116


Ignore:
Timestamp:
11/03/2014 03:39:14 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Use uppercase ID in WP_User based objects to prevent deprecated notices. See #5979.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-classes.php

    r9051 r9116  
    10641064
    10651065            foreach ( (array) $paged_users as $user ) {
    1066                 $user_ids[] = $user->id;
     1066                $user_ids[] = $user->ID;
    10671067            }
    10681068
     
    11351135        $user_ids = array();
    11361136        foreach ( (array) $paged_users as $user )
    1137             $user_ids[] = (int) $user->id;
     1137            $user_ids[] = (int) $user->ID;
    11381138
    11391139        // Add additional data to the returned results
     
    12231223         */
    12241224        foreach ( (array) $paged_users as $user )
    1225             $user_ids[] = $user->id;
     1225            $user_ids[] = $user->ID;
    12261226
    12271227        // Add additional data to the returned results
  • trunk/src/bp-templates/bp-legacy/buddypress-functions.php

    r9094 r9116  
    10571057        $uninvite_url = bp_is_current_action( 'create' ) ? bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/create/step/group-invites/?user_id=' . $friend_id : bp_get_group_permalink( $group ) . 'send-invites/remove/' . $friend_id;
    10581058
    1059         echo '<li id="uid-' . $user->id . '">';
     1059        echo '<li id="uid-' . esc_attr( $user->ID ) . '">';
    10601060        echo $user->avatar_thumb;
    10611061        echo '<h4>' . $user->user_link . '</h4>';
    10621062        echo '<span class="activity">' . esc_attr( $user->last_active ) . '</span>';
    10631063        echo '<div class="action">
    1064                 <a class="button remove" href="' . wp_nonce_url( $uninvite_url, 'groups_invite_uninvite_user' ) . '" id="uid-' . esc_attr( $user->id ) . '">' . __( 'Remove Invite', 'buddypress' ) . '</a>
     1064                <a class="button remove" href="' . wp_nonce_url( $uninvite_url, 'groups_invite_uninvite_user' ) . '" id="uid-' . esc_attr( $user->ID ) . '">' . __( 'Remove Invite', 'buddypress' ) . '</a>
    10651065              </div>';
    10661066
Note: See TracChangeset for help on using the changeset viewer.