[wp-trac] [WordPress Trac] #60862: wp_localize_script() on login_enqueue_scripts hook change in behavior
WordPress Trac
noreply at wordpress.org
Fri Mar 29 20:22:30 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
Component: Login and Registration | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
------------------------------------+---------------------
Comment (by swissspidy):
If I learned something from [57286] / #58696 it's that block registration
causes scripts to be initialized and localized very early, which can lead
to some odd side effects (as that ticket demonstrates). So this could be a
starting point for debugging.
The attached PR fixes the symptom but not the underlying bug. But we
should definitely identify and address the root cause here if possible.
Plus, add test coverage.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60862#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list