From 915607ca0d5fcf13fc074ee377f4c0c68be4e0cf Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Thu, 2 Jan 2014 22:49:09 +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. Built from https://develop.svn.wordpress.org/trunk@26898 git-svn-id: http://core.svn.wordpress.org/trunk@26781 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/press-this.php | 1 + wp-includes/class-wp-editor.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php index 58394c8a35..ea229c61f0 100644 --- a/wp-admin/press-this.php +++ b/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/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php index 5969f60777..48bcc85f5a 100644 --- a/wp-includes/class-wp-editor.php +++ b/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'); } }