diff --git a/wp-includes/media.php b/wp-includes/media.php index 288e1b9b48..2f47358d2d 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -1431,6 +1431,11 @@ function wp_prepare_attachment_for_js( $attachment ) { * @since 3.5.0 */ function wp_enqueue_media( $args = array() ) { + + // Enqueue me just once per page, please. + if ( did_action( 'wp_enqueue_media' ) ) + return; + $defaults = array( 'post' => null, );