From 6f2571daa57f577ac2ee13a620ad8658d631250e Mon Sep 17 00:00:00 2001 From: Emyr Thomas Date: Wed, 17 Jul 2013 13:55:58 +0100 Subject: [PATCH] Show limited formatting buttons on short description field editor I assume the original intent was to display a limited number of formatting buttons on the product short description field. However, since `quicktags` is specified twice in the `$settings` array, we get the WordPress default set of buttons. This commit fixes that problem and also reduces the number of formatting buttons in the TinyMCE editor to match. --- admin/post-types/writepanels/writepanels-init.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/admin/post-types/writepanels/writepanels-init.php b/admin/post-types/writepanels/writepanels-init.php index 59921b7f686..bdcb8d83113 100644 --- a/admin/post-types/writepanels/writepanels-init.php +++ b/admin/post-types/writepanels/writepanels-init.php @@ -160,10 +160,9 @@ add_action( 'pre_post_update', 'woocommerce_pre_post_update' ); function woocommerce_product_short_description_meta_box( $post ) { $settings = array( - 'quicktags' => array( 'buttons' => 'em,strong,link' ), 'textarea_name' => 'excerpt', - 'quicktags' => true, - 'tinymce' => true, + 'quicktags' => array( 'buttons' => 'em,strong,link' ), + 'tinymce' => array( 'theme_advanced_buttons1' => 'bold,italic,link,unlink' ), 'editor_css' => '' ); @@ -502,4 +501,4 @@ function woocommerce_wp_radio( $field ) { '; } echo ''; -} \ No newline at end of file +}