diff --git a/src/bp-templates/bp-legacy/buddypress-functions.php b/src/bp-templates/bp-legacy/buddypress-functions.php
index 6e1ad76..214a2b9 100644
a
|
b
|
class BP_Legacy extends BP_Theme_Compat { |
264 | 264 | if ( bp_is_register_page() || ( function_exists( 'bp_is_user_settings_general' ) && bp_is_user_settings_general() ) ) { |
265 | 265 | |
266 | 266 | // Locate the Register Page JS file |
267 | | $asset = $this->locate_asset_in_stack( "password-verify{$min}.js", 'js' ); |
| 267 | $asset = $this->locate_asset_in_stack( "password-verify{$min}.js", 'js', 'bp-legacy-password-verify' ); |
268 | 268 | |
269 | 269 | $dependencies = array_merge( bp_core_get_js_dependencies(), array( |
270 | 270 | 'password-strength-meter', |
… |
… |
class BP_Legacy extends BP_Theme_Compat { |
299 | 299 | * |
300 | 300 | * @since BuddyPress (1.8) |
301 | 301 | * @access private |
302 | | * @param string $file A filename like buddypress.cs |
303 | | * @param string $type css|js |
| 302 | * @param string $file A filename like buddypress.css |
| 303 | * @param string $type Optional. Either "js" or "css" (the default). |
| 304 | * @param string $script_name Optional. If set, used as the script name in `wp_enqueue_script`. |
304 | 305 | * @return array An array of data for the wp_enqueue_* function: |
305 | 306 | * 'handle' (eg 'bp-child-css') and a 'location' (the URI of the |
306 | 307 | * asset) |
307 | 308 | */ |
308 | | private function locate_asset_in_stack( $file, $type = 'css' ) { |
| 309 | private function locate_asset_in_stack( $file, $type = 'css', $script_name = '' ) { |
309 | 310 | // Child, parent, theme compat |
310 | 311 | $locations = array(); |
311 | 312 | |
… |
… |
class BP_Legacy extends BP_Theme_Compat { |
343 | 344 | foreach ( $subdirs as $subdir ) { |
344 | 345 | if ( file_exists( trailingslashit( $location['dir'] ) . trailingslashit( $subdir ) . $location['file'] ) ) { |
345 | 346 | $retval['location'] = trailingslashit( $location['uri'] ) . trailingslashit( $subdir ) . $location['file']; |
346 | | $retval['handle'] = $location_type . '-' . $type; |
| 347 | $retval['handle'] = ( $script_name ) ? $script_name : "{$location_type}-{$type}"; |
| 348 | |
347 | 349 | break 2; |
348 | 350 | } |
349 | 351 | } |