[wp-trac] [WordPress Trac] #60862: wp_localize_script() on login_enqueue_scripts hook change in behavior
WordPress Trac
noreply at wordpress.org
Tue Apr 30 17:59:17 UTC 2024
#60862: wp_localize_script() on login_enqueue_scripts hook change in behavior
------------------------------+---------------------
Reporter: salcode | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.5.3
Component: Script Loader | Version: 6.5
Severity: normal | Resolution:
Keywords: has-patch commit | Focuses:
------------------------------+---------------------
Comment (by aslamdoctor):
Thanks @jorbin
Regarding PHP test, if you restore the php unit test file and then do the
test by restoring the `src/wp-includes/functions.wp-scripts.php` file to
it's previous state, the assertion returns false because it finds the
`$wp_scripts` is not defined. But with the patch, the assertion returns
true. So yes the unit test works properly.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60862#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list