From 9bf024f8f3baf5589d94151fb1bc3c5e2063811e Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Thu, 2 Jan 2014 22:49:00 +0000 Subject: [PATCH] Thickbox is needed for the media modal back-compat. Are there plugins that still use this? Also needed for PressThis. See #24067. git-svn-id: https://develop.svn.wordpress.org/trunk@26898 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/press-this.php | 1 + src/wp-includes/class-wp-editor.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/press-this.php b/src/wp-admin/press-this.php index 58394c8a35..ea229c61f0 100644 --- a/src/wp-admin/press-this.php +++ b/src/wp-admin/press-this.php @@ -297,6 +297,7 @@ die; wp_enqueue_style( 'colors' ); wp_enqueue_script( 'post' ); + add_thickbox(); _wp_admin_html_begin(); ?> <?php _e('Press This') ?> diff --git a/src/wp-includes/class-wp-editor.php b/src/wp-includes/class-wp-editor.php index 5969f60777..48bcc85f5a 100644 --- a/src/wp-includes/class-wp-editor.php +++ b/src/wp-includes/class-wp-editor.php @@ -487,7 +487,7 @@ final class _WP_Editors { wp_enqueue_script('wp-fullscreen'); if ( self::$has_medialib ) { - // add_thickbox(); // ? + add_thickbox(); wp_enqueue_script('media-upload'); } }