Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/22/2016 09:35:42 PM (8 years ago)
Author:
r-a-y
Message:

Core: Cast properties as integers where appropriate.

See #6977.

File:
1 edited

Legend:

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

    r10913 r11024  
    592592        foreach ( $this->user_ids as $key => $uid ) {
    593593            if ( isset( $r[ $uid ] ) ) {
     594                $r[ $uid ]->ID = (int) $uid;
     595                $r[ $uid ]->user_status = (int) $r[ $uid ]->user_status;
     596
    594597                $this->results[ $uid ] = $r[ $uid ];
    595598
    596599                // The BP template functions expect an 'id'
    597600                // (as opposed to 'ID') property.
    598                 $this->results[ $uid ]->id = $uid;
     601                $this->results[ $uid ]->id = (int) $uid;
    599602
    600603            // Remove user ID from original user_ids property.
Note: See TracChangeset for help on using the changeset viewer.