WordPress.org

Make WordPress Core

Changeset 23214


Ignore:
Timestamp:
12/27/2012 04:07:12 PM (7 years ago)
Author:
nacin
Message:

Limit the execution of wp_enqueue_media() to once per page. Prevents multiple _wpMediaViewsL10n variables. see #22843.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/media.php

    r23186 r23214  
    14321432 */
    14331433function wp_enqueue_media( $args = array() ) {
     1434
     1435    // Enqueue me just once per page, please.
     1436    if ( did_action( 'wp_enqueue_media' ) )
     1437        return;
     1438
    14341439    $defaults = array(
    14351440        'post' => null,
Note: See TracChangeset for help on using the changeset viewer.