[wp-trac] [WordPress Trac] #60862: wp_localize_script() on login_enqueue_scripts hook change in behavior

WordPress Trac noreply at wordpress.org
Fri Apr 26 18:11:41 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      |     Focuses:
---------------------------+---------------------

Comment (by jorbin):

 @aslamdoctor thanks, but this test isn't actually testing the code due to
 how globals work.  If you run the test in isolation without the change, it
 fails as expected. However if you run it with the entire suite, it will be
 a false positive.

 I've added an e2e test in https://github.com/WordPress/wordpress-
 develop/pull/6334/commits/8ecd3e01fdfbfc1c87ebcc6b254b620f147ffa25 what do
 you think?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60862#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list