- Timestamp:
- 04/24/2023 02:32:27 AM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/buddypress-functions.php
r13372 r13461 5 5 * @since 3.0.0 6 6 * @package BuddyPress 7 * @version 1 0.0.07 * @version 12.0.0 8 8 * 9 9 * @buddypress-template-pack { … … 177 177 add_action( 'bp_actions', array( $this, 'neutralize_core_template_notices' ), 6 ); 178 178 179 // Scripts & Styles. 180 $registration_params = array( 181 'hook' => 'bp_enqueue_community_scripts', 182 'priority' => 2, 183 ); 184 185 /* 186 * The WordPress Full Site Editing feature needs Scripts 187 * and Styles to be registered earlier. 188 */ 189 if ( current_theme_supports( 'block-templates' ) ) { 190 $registration_params['hook'] = 'bp_init'; 191 $registration_params['priority'] = 20; 192 } 193 194 // Register theme JS. 195 add_action( $registration_params['hook'], array( $this, 'register_scripts' ), $registration_params['priority'] ); 179 // Register scripts & styles. 180 add_action( 'bp_enqueue_community_scripts', array( $this, 'register_scripts' ), 2 ); 196 181 197 182 // Enqueue theme CSS.
Note: See TracChangeset
for help on using the changeset viewer.