[buddypress-trac] [BuddyPress Trac] #5972: Password strength meter's JS re-uses theme compat. asset handle
buddypress-trac
noreply at wordpress.org
Fri Feb 20 23:10:36 UTC 2015
#5972: Password strength meter's JS re-uses theme compat. asset handle
-----------------------------------------+-----------------------
Reporter: DJPaul | Owner: DJPaul
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 2.3
Component: Appearance - Template Parts | Version: 2.1
Severity: major | Resolution:
Keywords: has-patch |
-----------------------------------------+-----------------------
Comment (by DJPaul):
Sorry Boone, I don't understand. I am only suggesting we override the
`$handle` for the `wp_enqueue_script()` call. I am not saying we should
change in any way the existing process of locating where the file is
actually on the hard drive, only its `$handle`.
For example:
BP finds `password-script.js` in the child theme, its handle becomes
`password-script`.
BP finds `password-script.js` in the theme compat. folder, its handle is
still `password-script`.
If I wanted to de-queue that file on a custom site, I'd
`wp_dequeue_script( 'password-script' )` and I know it would always work,
regardless of where the actual file is located in the site's files.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5972#comment:7>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list