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

WordPress Trac noreply at wordpress.org
Tue Apr 9 09:18:58 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.1
Component:  Login and Registration      |     Version:  6.5
 Severity:  normal                      |  Resolution:
 Keywords:  needs-unit-tests has-patch  |     Focuses:
----------------------------------------+---------------------

Comment (by swissspidy):

 @GuerillaDesigns I don't think that's related.

 If you pass `editor_script` to `register_block_type`, it will
 automatically call `register_block_script_handle` for it, which means it
 will call `wp_register_script`. But you are already registering the script
 yourself, so that will get overridden.

 If you're seeing different behavior in 6.5, that might be because of
 [57590]. I recommend opening a new ticket for this. FYI @gziolo.

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


More information about the wp-trac mailing list