Opened 14 years ago
Closed 14 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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5.1 |
| Component: | Media | Version: | 3.5 |
| Severity: | trivial | Keywords: | has-patch commit fixed-major |
| Cc: | Focuses: |
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
@
14 years ago
- Severity minor → 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.