Skip to:
Content

BuddyPress.org

Changeset 11075


Ignore:
Timestamp:
09/09/2016 03:57:02 PM (5 years ago)
Author:
boonebgorges
Message:

Use strict mode for in_array() when possible.

Introduced in [11074].

See #5451.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-cache.php

    r11074 r11075  
    292292function bp_groups_reset_cache_incrementor_on_group_term_change( $object_id, $terms, $tt_ids, $taxonomy ) {
    293293    $tax_object = get_taxonomy( $taxonomy );
    294     if ( $tax_object && in_array( 'bp_group', $tax_object->object_type ) ) {
     294    if ( $tax_object && in_array( 'bp_group', $tax_object->object_type, true ) ) {
    295295        return bp_groups_reset_cache_incrementor();
    296296    }
     
    315315function bp_groups_reset_cache_incrementor_on_group_term_remove( $object_id, $terms, $taxonomy ) {
    316316    $tax_object = get_taxonomy( $taxonomy );
    317     if ( $tax_object && in_array( 'bp_group', $tax_object->object_type ) ) {
     317    if ( $tax_object && in_array( 'bp_group', $tax_object->object_type, true ) ) {
    318318        return bp_groups_reset_cache_incrementor();
    319319    }
Note: See TracChangeset for help on using the changeset viewer.