- Timestamp:
- 08/09/2014 04:22:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-legacy/buddypress-functions.php
r8770 r8772 203 203 204 204 // Locate the BP stylesheet 205 $asset = $this->locate_asset_in_stack( 'buddypress.css', 'css' );205 $asset = $this->locate_asset_in_stack( "buddypress{$min}.css", 'css' ); 206 206 207 207 // Enqueue BuddyPress-specific styling, if found … … 222 222 */ 223 223 public function enqueue_scripts() { 224 225 $file = 'buddypress.js'; 224 $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; 226 225 227 226 // Locate the BP JS file 228 $asset = $this->locate_asset_in_stack( $file, 'js' );227 $asset = $this->locate_asset_in_stack( "buddypress{$min}.js", 'js' ); 229 228 230 229 // Enqueue the global JS, if found - AJAX will not work … … 260 259 // Maybe enqueue password verify JS (register page or user settings page) 261 260 if ( bp_is_register_page() || ( function_exists( 'bp_is_user_settings_general' ) && bp_is_user_settings_general() ) ) { 262 $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';263 $filename = "password-verify{$min}.js";264 261 265 262 // Locate the Register Page JS file 266 $asset = $this->locate_asset_in_stack( $filename, 'js' ); 267 268 // Enqueue script 263 $asset = $this->locate_asset_in_stack( "password-verify{$min}.js", 'js' ); 264 269 265 $dependencies = array_merge( bp_core_get_js_dependencies(), array( 270 266 'password-strength-meter', 271 267 ) ); 268 269 // Enqueue script 272 270 wp_enqueue_script( $asset['handle'] . '-password-verify', $asset['location'], $dependencies, $this->version); 273 271 }
Note: See TracChangeset
for help on using the changeset viewer.