Changeset 13673
- Timestamp:
- 12/16/2023 10:48:45 AM (12 months ago)
- Location:
- branches/12.0/src/bp-templates
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/12.0/src/bp-templates/bp-legacy/buddypress-functions.php
r13636 r13673 85 85 add_action( 'bp_enqueue_community_scripts', array( $this, 'localize_scripts' ) ); // Enqueue theme script localization 86 86 87 /** Body no-js Class **************************************************/ 88 89 add_filter( 'body_class', array( $this, 'add_nojs_body_class' ), 20, 1 ); 87 /** This filter is documented in bp-core/bp-core-dependency.php */ 88 if ( is_buddypress() || ! apply_filters( 'bp_enqueue_assets_in_bp_pages_only', true ) ) { 89 // Body no-js class. 90 add_filter( 'body_class', array( $this, 'add_nojs_body_class' ), 20, 1 ); 91 } 90 92 91 93 /** Buttons ***********************************************************/ -
branches/12.0/src/bp-templates/bp-nouveau/buddypress-functions.php
r13652 r13673 221 221 remove_action( 'bp_enqueue_community_scripts', 'bp_core_confirmation_js' ); 222 222 223 // Body no-js class. 224 add_filter( 'body_class', array( $this, 'add_nojs_body_class' ), 20, 1 ); 223 /** This filter is documented in bp-core/bp-core-dependency.php */ 224 if ( is_buddypress() || ! apply_filters( 'bp_enqueue_assets_in_bp_pages_only', true ) ) { 225 // Body no-js class. 226 add_filter( 'body_class', array( $this, 'add_nojs_body_class' ), 20, 1 ); 227 } 225 228 226 229 // Ajax querystring.
Note: See TracChangeset
for help on using the changeset viewer.