Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/01/2016 04:59:31 PM (8 years ago)
Author:
r-a-y
Message:

Activity: Cast activity properties as integers where appropriate.

Props DJPaul, r-a-y.

See #6977.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-template.php

    r10825 r10853  
    15641564        // quite powerful, because doing so also deletes all comments to that
    15651565        // activity item. We should revisit this eventually.
    1566         if ( isset( $activity->user_id ) && ( (int) $activity->user_id === bp_loggedin_user_id() ) ) {
     1566        if ( isset( $activity->user_id ) && ( $activity->user_id === bp_loggedin_user_id() ) ) {
    15671567            $can_delete = true;
    15681568        }
     
    16171617
    16181618        // Get the ID of the parent activity content.
    1619         $parent_id = (int) $activities_template->activity->item_id;
     1619        $parent_id = $activities_template->activity->item_id;
    16201620
    16211621        // Bail if no parent content.
     
    16811681
    16821682        // Get the ID of the parent activity content.
    1683         $parent_id = (int) $activities_template->activity->item_id;
     1683        $parent_id = $activities_template->activity->item_id;
    16841684
    16851685        // Bail if no parent item.
Note: See TracChangeset for help on using the changeset viewer.