- Timestamp:
- 03/01/2023 08:17:11 AM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-settings/classes/class-bp-settings-component.php
r13414 r13432 95 95 * Setup globals. 96 96 * 97 * The BP_SETTINGS_SLUG constant is deprecated, and only used here for 98 * backwards compatibility. 97 * The BP_SETTINGS_SLUG constant is deprecated. 99 98 * 100 99 * @since 1.5.0 … … 105 104 */ 106 105 public function setup_globals( $args = array() ) { 107 108 // Define a slug, if necessary. 109 if ( ! defined( 'BP_SETTINGS_SLUG' ) ) { 110 define( 'BP_SETTINGS_SLUG', $this->id ); 106 $default_slug = $this->id; 107 108 // @deprecated. 109 if ( defined( 'BP_SETTINGS_SLUG' ) ) { 110 _doing_it_wrong( 'BP_SETTINGS_SLUG', esc_html__( 'Slug constants are deprecated.', 'buddypress' ), 'BuddyPress 12.0.0' ); 111 $default_slug = BP_SETTINGS_SLUG; 111 112 } 112 113 113 114 // All globals for settings component. 114 115 parent::setup_globals( array( 115 'slug' => BP_SETTINGS_SLUG,116 'slug' => $default_slug, 116 117 'has_directory' => false, 117 118 ) );
Note: See TracChangeset
for help on using the changeset viewer.