[wp-trac] [WordPress Trac] #24724: _wpMediaViewsL10n not correctly enqueued in wp_enqueue_media()
WordPress Trac
noreply at wordpress.org
Thu Jun 26 01:37:15 UTC 2014
#24724: _wpMediaViewsL10n not correctly enqueued in wp_enqueue_media()
--------------------------+-----------------------------
Reporter: Fab1en | Owner: wonderboymusic
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.0
Component: Media | Version: 3.5.2
Severity: major | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+-----------------------------
Changes (by wonderboymusic):
* owner: => wonderboymusic
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"28840"]:
{{{
#!CommitTicketReference repository="" revision="28840"
In `wp_localize_script()`, instantiate the `$wp_scripts` global instead of
bailing when it is called before `wp_enqueue_scripts`. This allows
`wp_enqueue_media()` to be called on the front end with no JS errors.
Props ericlewis.
Fixes #24724.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/24724#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list