Make WordPress Core

Changeset 23269


Ignore:
Timestamp:
01/04/2013 08:02:05 PM (11 years ago)
Author:
nacin
Message:

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

Merges [23214] to the 3.5 branch.
fixes #22843.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.5/wp-includes/media.php

    r23140 r23269  
    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.