- Timestamp:
- 03/01/2023 08:17:11 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-messages/classes/class-bp-messages-component.php
r13414 r13432 146 146 * Set up globals for the Messages component. 147 147 * 148 * The BP_MESSAGES_SLUG constant is deprecated, and only used here for 149 * backwards compatibility. 148 * The BP_MESSAGES_SLUG constant is deprecated. 150 149 * 151 150 * @since 1.5.0 … … 154 153 */ 155 154 public function setup_globals( $args = array() ) { 156 $bp = buddypress(); 157 158 // Define a slug, if necessary. 159 if ( ! defined( 'BP_MESSAGES_SLUG' ) ) { 160 define( 'BP_MESSAGES_SLUG', $this->id ); 155 $bp = buddypress(); 156 $default_slug = $this->id; 157 158 // @deprecated. 159 if ( defined( 'BP_MESSAGES_SLUG' ) ) { 160 _doing_it_wrong( 'BP_MESSAGES_SLUG', esc_html__( 'Slug constants are deprecated.', 'buddypress' ), 'BuddyPress 12.0.0' ); 161 $default_slug = BP_MESSAGES_SLUG; 161 162 } 162 163 … … 179 180 // Note that global_tables is included in this array. 180 181 parent::setup_globals( array( 181 'slug' => BP_MESSAGES_SLUG,182 'slug' => $default_slug, 182 183 'has_directory' => false, 183 184 'notification_callback' => 'messages_format_notifications',
Note: See TracChangeset
for help on using the changeset viewer.