[wp-trac] [WordPress Trac] #50919: wp_localize_script( 'jquery') has stopped working
WordPress Trac
noreply at wordpress.org
Wed Aug 12 09:43:32 UTC 2020
#50919: wp_localize_script( 'jquery') has stopped working
-------------------------------+------------------------------
Reporter: rajeshsingh520 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Script Loader | Version: 5.5
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by rajeshsingh520):
Yes the issue was still there, it was infect present in my other plugins
as well
you can reproduct the issue on your end
all the wp_localize_script( 'jquery', 'pi_global_day_time', $return );
localizing with 'jquery' are not getting added in the front end
I fixed it in my plugin by changing it to localize with some other handler
script
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50919#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list