Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/19/2017 03:25:37 AM (9 years ago)
Author:
johnjamesjacoby
Message:

in_array(): be strict whenever possible.

Use wp_parse_id_list() on certain array values to ensure proper results.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/extend/buddypress/activity.php

    r6391 r6415  
    366366
    367367            // Check if this activity stream action is disabled
    368             if ( in_array( $action_name, $disabled_actions ) ) {
     368            if ( in_array( $action_name, $disabled_actions, true ) ) {
    369369                $can_comment = false;
    370370            }
     
    392392
    393393        // Check if this activity stream action is directly linked
    394         if ( in_array( $activity_object->type, $disabled_actions ) ) {
     394        if ( in_array( $activity_object->type, $disabled_actions, true ) ) {
    395395            $link = $activity_object->primary_link;
    396396        }
Note: See TracChangeset for help on using the changeset viewer.