[wp-trac] [WordPress Trac] #50919: wp_localize_script( 'jquery') has stopped working

WordPress Trac noreply at wordpress.org
Thu Aug 27 20:31:40 UTC 2020


#50919: wp_localize_script( 'jquery') has stopped working
------------------------------+-----------------------------
 Reporter:  rajeshsingh520    |       Owner:  SergeyBiryukov
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  5.5.1
Component:  Script Loader     |     Version:  5.5
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"48890" 48890]:
 {{{
 #!CommitTicketReference repository="" revision="48890"
 Script Loader: Change the `jquery` handle back to an alias for `jquery-
 core`.

 This ensures that `wp_localize_script( 'jquery', ... )` continues to work
 as expected, since `WP_Scripts::localize()` rewrites the `jquery` handle
 to `jquery-core` internally.

 Follow-up to [48323].

 Props mukesh27, rajeshsingh520, johnbillion, TimothyBlynJacobs, TobiasBg.
 Fixes #50919.
 }}}

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


More information about the wp-trac mailing list