From 1fd29d4b4cf0f851cfb33428fb3f2ded3d45ff75 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sun, 2 Dec 2012 16:33:20 +0000 Subject: [PATCH] Add wp_enqueue_media action to the function of the same name. props koopersmith, fixes #22678. git-svn-id: http://core.svn.wordpress.org/trunk@22969 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/media.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/media.php b/wp-includes/media.php index f9cd28ce22..02c95831f5 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -1489,6 +1489,8 @@ function wp_enqueue_media( $args = array() ) { wp_plupload_default_settings(); add_action( 'admin_footer', 'wp_print_media_templates' ); add_action( 'wp_footer', 'wp_print_media_templates' ); + + do_action( 'wp_enqueue_media' ); } /**