[wp-trac] [WordPress Trac] #27068: JS var thickboxL10n is added twice

WordPress Trac noreply at wordpress.org
Sat Feb 8 12:11:17 UTC 2014


#27068: JS var thickboxL10n is added twice
-------------------------------+------------------------------
 Reporter:  finalwebsites      |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Script Loader      |     Version:  3.8.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:  needs-testing => reporter-feedback


Comment:

 Could not reproduce on a clean install, `thickboxL10n` is only added once
 for me.

 Could you check if the issue still exists with all plugins disabled and a
 default theme (Twenty Fourteen or Twenty Thirteen) activated? Make sure
 you use the correct action for `wp_enqueue_script()`, i.e.
 `wp_enqueue_scripts` or `admin_enqueue_scripts`.

 Swapping `$scripts->localize()` with `$scripts->add()` here seems weird
 and would be inconsistent with localizing other scripts.

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


More information about the wp-trac mailing list