Changeset 11233
- Timestamp:
- 11/04/2016 03:49:51 PM (8 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-options.php
r11163 r11233 103 103 /* Legacy *********************************************/ 104 104 105 // Whether toregister the bp-default themes directory.105 // Do not register the bp-default themes directory. 106 106 '_bp_retain_bp_default' => false, 107 107 108 // Whether to loaddeprecated code.108 // Ignore deprecated code. 109 109 '_bp_ignore_deprecated_code' => true, 110 110 -
trunk/src/bp-core/bp-core-update.php
r11105 r11233 539 539 } 540 540 541 // Loaddeprecated code for existing installs.541 // Do not ignore deprecated code for existing installs. 542 542 bp_add_option( '_bp_ignore_deprecated_code', false ); 543 543 } -
trunk/src/bp-loader.php
r11228 r11233 307 307 } 308 308 309 // Whether to refrain from loading deprecated functions310 if ( ! defined( 'BP_IGNORE_DEPRECATED' ) ) {311 define( 'BP_IGNORE_DEPRECATED', true );312 }313 314 309 // The search slug has to be defined nice and early because of the way 315 310 // search requests are loaded … … 337 332 338 333 /** 339 * Whether to load deprecated code or not.334 * Should deprecated code be loaded? 340 335 * 341 * @since 2.0.0 342 * @since 2.7.0 Defaults to false (do not load deprecated code) for new installs. 343 * 344 * @const constant BP_IGNORE_DEPRECATED Whether or not to ignore deprecated functionality. 345 */ 346 $this->load_deprecated = ! apply_filters( 'bp_ignore_deprecated', BP_IGNORE_DEPRECATED ); 336 * @since 2.0.0 Defaults to false always 337 * @since 2.8.0 Defaults to true on upgrades, false for new installs. 338 */ 339 $this->load_deprecated = ! bp_get_option( '_bp_ignore_deprecated_code', true ); 347 340 348 341 /** Toolbar ***********************************************************/ … … 457 450 if ( ! defined( 'BP_DB_VERSION' ) ) { 458 451 define( 'BP_DB_VERSION', $this->db_version ); 452 } 453 454 // Define if deprecated functions should be ignored 455 if ( ! defined( 'BP_IGNORE_DEPRECATED' ) ) { 456 define( 'BP_IGNORE_DEPRECATED', true ); 459 457 } 460 458 } … … 510 508 } 511 509 512 // Skip or load deprecated content513 if ( $this->load_deprecated || ! bp_get_option( '_bp_ignore_deprecated_code' )) {510 // Maybe load deprecated functionality 511 if ( true === $this->load_deprecated ) { 514 512 require( $this->plugin_dir . 'bp-core/deprecated/1.2.php' ); 515 513 require( $this->plugin_dir . 'bp-core/deprecated/1.5.php' );
Note: See TracChangeset
for help on using the changeset viewer.