Changeset 11361
- Timestamp:
- 12/29/2016 09:04:59 PM (8 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-buddybar.php
r11290 r11361 801 801 802 802 // 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(); 807 805 808 806 if ( ! is_array( $screen_functions ) ) { … … 852 850 853 851 // 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(); 858 854 859 855 if ( ! is_array( $screen_functions ) ) { -
trunk/src/bp-core/classes/class-bp-core.php
r10825 r11361 255 255 256 256 // Backward compatibility for plugins modifying the legacy bp_nav and bp_options_nav global properties. 257 if ( buddypress()->do_nav_backcompat ) { 258 $bp->bp_nav = new BP_Core_BP_Nav_BackCompat(); 259 $bp->bp_options_nav = new BP_Core_BP_Options_Nav_BackCompat(); 260 } 257 $bp->bp_nav = new BP_Core_BP_Nav_BackCompat(); 258 $bp->bp_options_nav = new BP_Core_BP_Options_Nav_BackCompat(); 261 259 262 260 /** -
trunk/src/bp-loader.php
r11360 r11361 110 110 public $do_autoload = true; 111 111 112 /**113 * Whether to load backward compatibility classes for navigation globals.114 *115 * @since 2.6.0116 * @var bool117 */118 public $do_nav_backcompat = false;119 120 112 /** Option Overload *******************************************************/ 121 113 … … 424 416 $this->email_post_type = apply_filters( 'bp_email_post_type', 'bp-email' ); 425 417 $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 }432 418 } 433 419
Note: See TracChangeset
for help on using the changeset viewer.