Changeset 9524
- Timestamp:
- 02/22/2015 08:17:12 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-legacy/buddypress-functions.php
r9497 r9524 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( … … 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_handle 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_handle = '' ) { 309 310 // Child, parent, theme compat 310 311 $locations = array(); … … 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_handle ) ? $script_handle : "{$location_type}-{$type}"; 348 347 349 break 2; 348 350 }
Note: See TracChangeset
for help on using the changeset viewer.