Opened 12 years ago
Closed 12 years ago
#22843 closed defect (bug) (fixed)
_wpMediaViewsL10n localization variable written to html doc twice in post.php and post-new.php
Reported by: | gcorne | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.5.1 | Priority: | normal |
Severity: | trivial | Version: | 3.5 |
Component: | Media | Keywords: | has-patch commit fixed-major |
Focuses: | Cc: |
Description
The _wpMediaViewsL10n variable is being written to the html response twice in post.php and post-new.php. This is being caused because wp_enqueue_media() is being called twice: 1) wp-admin/includes/media.php 2) wp-admin/edit-form-advanced.php
Attachments (1)
Change History (7)
#2
@
12 years ago
- Severity changed from minor to trivial
I should have been more clear that it didn't break anything. I just wanted to make sure that it was known.
Note: See
TracTickets for help on using
tickets.
It's getting called twice deliberately — one for media_buttons (which is generic), one in edit-form-advanced (in case only featured images are supported). It should work just fine if called twice, hence there aren't any crazy checks to avoid it being called more than once.
The double-printing, though, I know I had patched that at one point, but I guess I didn't commit it. This shouldn't be occurring, but the nice thing is this doesn't break anything.