- Timestamp:
- 03/01/2023 08:17:11 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-notifications/classes/class-bp-notifications-component.php
r13414 r13432 100 100 */ 101 101 public function setup_globals( $args = array() ) { 102 $bp = buddypress(); 103 104 // Define a slug, if necessary. 105 if ( ! defined( 'BP_NOTIFICATIONS_SLUG' ) ) { 106 define( 'BP_NOTIFICATIONS_SLUG', $this->id ); 102 $bp = buddypress(); 103 $default_slug = $this->id; 104 105 // @deprecated. 106 if ( defined( 'BP_NOTIFICATIONS_SLUG' ) ) { 107 _doing_it_wrong( 'BP_NOTIFICATIONS_SLUG', esc_html__( 'Slug constants are deprecated.', 'buddypress' ), 'BuddyPress 12.0.0' ); 108 $default_slug = BP_NOTIFICATIONS_SLUG; 107 109 } 108 110 … … 121 123 // Note that global_tables is included in this array. 122 124 $args = array( 123 'slug' => BP_NOTIFICATIONS_SLUG,125 'slug' => $default_slug, 124 126 'has_directory' => false, 125 127 'search_string' => __( 'Search Notifications...', 'buddypress' ),
Note: See TracChangeset
for help on using the changeset viewer.