WordPress.org

Make WordPress Core

Ticket #22843: 22843.diff

File 22843.diff, 420 bytes (added by nacin, 3 years ago)
  • wp-includes/media.php

     
    14311431 * @since 3.5.0 
    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, 
    14361441        );