Changeset 11105
- Timestamp:
- 09/15/2016 08:19:52 PM (8 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-options.php
r11094 r11105 101 101 '_bp_force_buddybar' => false, 102 102 103 /* Legacy theme*********************************************/103 /* Legacy *********************************************/ 104 104 105 105 // Whether to register the bp-default themes directory. 106 106 '_bp_retain_bp_default' => false, 107 108 // Whether to load deprecated code. 109 '_bp_ignore_deprecated_code' => true, 107 110 108 111 /* Widgets **************************************************/ -
trunk/src/bp-core/bp-core-update.php
r11095 r11105 266 266 267 267 // Version 2.7.0. 268 if ( $raw_db_version < 11 079) {268 if ( $raw_db_version < 11105 ) { 269 269 bp_update_to_2_7(); 270 270 } … … 511 511 * - Add email unsubscribe salt. 512 512 * - Save legacy directory titles to the corresponding WP pages. 513 * - Add ignore deprecated code option (false for updates). 513 514 * 514 515 * @since 2.7.0 … … 537 538 } 538 539 } 540 541 // Load deprecated code for existing installs. 542 bp_add_option( '_bp_ignore_deprecated_code', false ); 539 543 } 540 544 -
trunk/src/bp-loader.php
r11084 r11105 309 309 // Whether to refrain from loading deprecated functions 310 310 if ( ! defined( 'BP_IGNORE_DEPRECATED' ) ) { 311 define( 'BP_IGNORE_DEPRECATED', false );311 define( 'BP_IGNORE_DEPRECATED', true ); 312 312 } 313 313 … … 332 332 333 333 $this->version = '2.7-alpha'; 334 $this->db_version = 11 084;334 $this->db_version = 11105; 335 335 336 336 /** Loading ***********************************************************/ 337 337 338 338 /** 339 * Filters the load_deprecated property value.339 * Whether to load deprecated code or not. 340 340 * 341 341 * @since 2.0.0 342 * @since 2.7.0 Defaults to false (do not load deprecated code) for new installs. 342 343 * 343 344 * @const constant BP_IGNORE_DEPRECATED Whether or not to ignore deprecated functionality. … … 510 511 511 512 // Skip or load deprecated content 512 if ( false !== $this->load_deprecated) {513 if ( $this->load_deprecated || ! bp_get_option( '_bp_ignore_deprecated_code' ) ) { 513 514 require( $this->plugin_dir . 'bp-core/deprecated/1.2.php' ); 514 515 require( $this->plugin_dir . 'bp-core/deprecated/1.5.php' );
Note: See TracChangeset
for help on using the changeset viewer.