WordPress.org

Make WordPress Core

#22778 closed defect (bug) (fixed)

Move wp_print_media_templates() to wp-includes/media-template.php

Reported by: nacin Owned by: nacin
Milestone: 3.5 Priority: normal
Severity: normal Version: 3.5
Component: Media Keywords:
Focuses: Cc:

Description

So we can lazy-load it. I have been waiting to do this for a month, but kept wanting to not break patches. Finally time.

Change History (2)

comment:1 nacin17 months ago

  • Owner set to nacin
  • Status changed from new to assigned
  • Version set to trunk

comment:2 nacin17 months ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 23101:

Break wp_print_media_templates() into wp-includes/media-template.php and lazy-load that file through wp_enqueue_media(). fixes #22778.

Note: See TracTickets for help on using tickets.