Make WordPress Core

Ticket #31161: 31161v2.patch

File 31161v2.patch, 1017 bytes (added by MattyRob, 10 years ago)
  • src/wp-includes/class-wp-editor.php

     
    593593                                 * @param array  $buttons   Second-row list of buttons.
    594594                                 * @param string $editor_id Unique editor identifier, e.g. 'content'.
    595595                                 */
    596                                 $mce_buttons_2 = apply_filters( 'mce_buttons_2', array( 'formatselect', 'underline', 'alignjustify', 'forecolor', 'pastetext', 'removeformat', 'charmap', 'outdent', 'indent', 'undo', 'redo', 'wp_help' ), $editor_id );
     596                                $mce_buttons_2 = array( 'formatselect', 'underline', 'alignjustify', 'forecolor', 'pastetext', 'removeformat', 'charmap', 'outdent', 'indent', 'undo', 'redo' );
     597
     598                                if ( ! wp_is_mobile() ) {
     599                                        $mce_buttons_2[] = 'wp_help';
     600                                }
     601
     602                                 $mce_buttons_2 = apply_filters( 'mce_buttons_2', $mce_buttons_2, $editor_id )
    597603                                /**
    598604                                 * Filter the third-row list of TinyMCE buttons (Visual tab).