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

WordPress Trac noreply at wordpress.org
Thu Aug 27 20:34:34 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:
------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 In [changeset:"48891" 48891]:
 {{{
 #!CommitTicketReference repository="" revision="48891"
 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.
 Merges [48890] to the 5.5 branch.
 Fixes #50919.
 }}}

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


More information about the wp-trac mailing list