[wp-trac] [WordPress Trac] #22495: Localize media-popup.js?
WordPress Trac
noreply at wordpress.org
Mon Nov 19 00:29:49 UTC 2012
#22495: Localize media-popup.js?
--------------------------+--------------------
Reporter: bradyvercher | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.5
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: |
--------------------------+--------------------
Comment (by koopersmith):
Replying to [comment:2 SergeyBiryukov]:
> Seems that the right way to include the media upload functionality on a
page is to call `wp_enqueue_media()` instead of enqueueing the scripts
directly.
You're correct. We should add some graceful fallbacks for the `l10n`
variable to make sure things don't break when `media-upload.js` is
enqueued as a dependency, though.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22495#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list