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-loader.php

    r11360 r11361  
    110110    public $do_autoload = true;
    111111
    112     /**
    113      * Whether to load backward compatibility classes for navigation globals.
    114      *
    115      * @since 2.6.0
    116      * @var bool
    117      */
    118     public $do_nav_backcompat = false;
    119 
    120112    /** Option Overload *******************************************************/
    121113
     
    424416        $this->email_post_type     = apply_filters( 'bp_email_post_type', 'bp-email' );
    425417        $this->email_taxonomy_type = apply_filters( 'bp_email_tax_type', 'bp-email-type' );
    426 
    427         /** Navigation backward compatibility *********************************/
    428         if ( interface_exists( 'ArrayAccess', false ) ) {
    429             // bp_nav and bp_options_nav compatibility depends on SPL.
    430             $this->do_nav_backcompat = true;
    431         }
    432418    }
    433419
Note: See TracChangeset for help on using the changeset viewer.