From f0c491968ade0806ab348719b5b39e722cb1b459 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Tue, 4 Mar 2014 04:07:31 +0000 Subject: [PATCH] DFW: revert adding the 'image' button, images are edited in the media modal. See #24067. git-svn-id: https://develop.svn.wordpress.org/trunk@27391 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/wp-fullscreen.js | 3 --- src/wp-includes/class-wp-editor.php | 1 - 2 files changed, 4 deletions(-) diff --git a/src/wp-admin/js/wp-fullscreen.js b/src/wp-admin/js/wp-fullscreen.js index f1c69ca298..f0c2bb4355 100644 --- a/src/wp-admin/js/wp-fullscreen.js +++ b/src/wp-admin/js/wp-fullscreen.js @@ -528,9 +528,6 @@ case 'unlink': s.editor.execCommand('unlink'); break; - case 'image': - s.editor.execCommand('mceImage'); - break; case 'help': s.editor.execCommand('WP_Help'); break; diff --git a/src/wp-includes/class-wp-editor.php b/src/wp-includes/class-wp-editor.php index b02b1ad1f7..af2a071c6c 100644 --- a/src/wp-includes/class-wp-editor.php +++ b/src/wp-includes/class-wp-editor.php @@ -897,7 +897,6 @@ final class _WP_Editors { 'numlist' => array( 'title' => __('Ordered list (Alt + Shift + O)'), 'both' => false ), 'blockquote' => array( 'title' => __('Blockquote (Alt + Shift + Q)'), 'both' => false ), 'wp-media-library' => array( 'title' => __('Media library (Alt + Shift + M)'), 'both' => true ), - 'image' => array( 'title' => __('Insert/edit image'), 'both' => false ), 'link' => array( 'title' => __('Insert/edit link (Alt + Shift + A)'), 'both' => true ), 'unlink' => array( 'title' => __('Unlink (Alt + Shift + S)'), 'both' => false ), 'help' => array( 'title' => __('Help (Alt + Shift + H)'), 'both' => false ),