Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
23 | public static function output( $post ) { |
||
24 | |||
25 | $settings = array( |
||
26 | 'textarea_name' => 'excerpt', |
||
27 | 'quicktags' => array( 'buttons' => 'em,strong,link' ), |
||
28 | 'tinymce' => array( |
||
29 | 'theme_advanced_buttons1' => 'bold,italic,strikethrough,separator,bullist,numlist,separator,blockquote,separator,justifyleft,justifycenter,justifyright,separator,link,unlink,separator,undo,redo,separator', |
||
30 | 'theme_advanced_buttons2' => '', |
||
31 | ), |
||
32 | 'editor_css' => '<style>#wp-excerpt-editor-container .wp-editor-area{height:175px; width:100%;}</style>', |
||
33 | ); |
||
34 | |||
35 | wp_editor( htmlspecialchars_decode( $post->post_excerpt, ENT_QUOTES ), 'excerpt', apply_filters( 'woocommerce_product_short_description_editor_settings', $settings ) ); |
||
36 | } |
||
37 | } |
||
38 |