WordPress.org

Make WordPress Core

Ticket #31161: 31161.diff

File 31161.diff, 772 bytes (added by MattyRob, 6 years ago)
  • wp-admin/edit-form-advanced.php

     
    531531?>
    532532<div id="postdivrich" class="postarea<?php if ( $_wp_editor_expand ) { echo ' wp-editor-expand'; } ?>">
    533533
    534 <?php wp_editor( $post->post_content, 'content', array(
     534<?php if ( wp_is_mobile() ) {
     535        add_filter( 'mce_buttons_2', 'no_help_if_mobile' );
     536        function no_help_if_mobile( $buttons ) {
     537                return array_diff( $buttons, array( 'wp_help' ) );
     538        }
     539}
     540
     541wp_editor( $post->post_content, 'content', array(
    535542        '_content_editor_dfw' => $_content_editor_dfw,
    536543        'drag_drop_upload' => true,
    537544        'tabfocus_elements' => 'content-html,save-post',