- Timestamp:
- 07/24/2014 01:11:02 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-legacy/buddypress-functions.php
r8662 r8686 254 254 wp_enqueue_script( 'comment-reply' ); 255 255 } 256 257 // Maybe enqueue password verify JS (register page or user settings page) 258 if ( bp_is_register_page() || ( function_exists( 'bp_is_user_settings_general' ) && bp_is_user_settings_general() ) ) { 259 $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; 260 $filename = "password-verify{$min}.js"; 261 262 // Locate the Register Page JS file 263 $asset = $this->locate_asset_in_stack( $filename, 'js' ); 264 265 // Enqueue script 266 $dependencies = array_merge( bp_core_get_js_dependencies(), array( 267 'password-strength-meter', 268 ) ); 269 wp_enqueue_script( $asset['handle'] . '-password-verify', $asset['location'], $dependencies, $this->version); 270 } 256 271 } 257 272
Note: See TracChangeset
for help on using the changeset viewer.