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

WordPress Trac noreply at wordpress.org
Wed Aug 12 20:16:26 UTC 2020


#50919: wp_localize_script( 'jquery') has stopped working
-------------------------------+---------------------
 Reporter:  rajeshsingh520     |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  5.5.1
Component:  Script Loader      |     Version:  5.5
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+---------------------

Comment (by TobiasBg):

 That said, maybe replacing
 {{{
 $scripts->add( 'jquery', '/wp-includes/js/jquery/jquery.js', array(),
 '1.12.4-wp' );
 }}}
 with
 {{{
 $scripts->add( 'jquery', false, array( 'jquery-core' ), '1.12.4-wp' );
 }}}
 might already be sufficient.

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


More information about the wp-trac mailing list