- Timestamp:
- 03/01/2023 08:17:11 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/classes/class-bp-xprofile-component.php
r13414 r13432 129 129 * Setup globals. 130 130 * 131 * The BP_XPROFILE_SLUG constant is deprecated, and only used here for 132 * backwards compatibility. 131 * The BP_XPROFILE_SLUG constant is deprecated. 133 132 * 134 133 * @since 1.5.0 … … 137 136 */ 138 137 public function setup_globals( $args = array() ) { 139 $bp = buddypress(); 140 141 // Define a slug, if necessary. 142 if ( ! defined( 'BP_XPROFILE_SLUG' ) ) { 143 define( 'BP_XPROFILE_SLUG', 'profile' ); 138 $bp = buddypress(); 139 $default_slug = 'profile'; 140 141 // @deprecated. 142 if ( defined( 'BP_XPROFILE_SLUG' ) ) { 143 _doing_it_wrong( 'BP_XPROFILE_SLUG', esc_html__( 'Slug constants are deprecated.', 'buddypress' ), 'BuddyPress 12.0.0' ); 144 $default_slug = BP_XPROFILE_SLUG; 144 145 } 145 146 … … 209 210 210 211 $globals = array( 211 'slug' => BP_XPROFILE_SLUG,212 'slug' => $default_slug, 212 213 'has_directory' => false, 213 214 'notification_callback' => 'xprofile_format_notifications',
Note: See TracChangeset
for help on using the changeset viewer.