Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/29/2016 09:04:59 PM (8 years ago)
Author:
boonebgorges
Message:

Remove conditional checks for initializing navigation back compat.

Nav back compat requires ArrayAccess, which is only guaranteed to
be available in PHP 5.3+.

See #7299.

File:
1 edited

Legend:

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

    r11290 r11361  
    801801
    802802    // Reset backcompat nav items so that subsequent references will be correct.
    803     if ( buddypress()->do_nav_backcompat ) {
    804         $bp->bp_nav->reset();
    805         $bp->bp_options_nav->reset();
    806     }
     803    $bp->bp_nav->reset();
     804    $bp->bp_options_nav->reset();
    807805
    808806    if ( ! is_array( $screen_functions ) ) {
     
    852850
    853851    // Reset backcompat nav items so that subsequent references will be correct.
    854     if ( buddypress()->do_nav_backcompat ) {
    855         $bp->bp_nav->reset();
    856         $bp->bp_options_nav->reset();
    857     }
     852    $bp->bp_nav->reset();
     853    $bp->bp_options_nav->reset();
    858854
    859855    if ( ! is_array( $screen_functions ) ) {
Note: See TracChangeset for help on using the changeset viewer.