WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/31/2015 10:44:40 PM (4 years ago)
Author:
azaozz
Message:

TinyMCE: disable the native fullscreen plugin on mobile devices by default.
Props iseulde. Fixes #33137;

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-editor.php

    r33699 r33835  
    594594                $mce_buttons = array( 'bold', 'italic', 'strikethrough', 'bullist', 'numlist', 'blockquote', 'hr', 'alignleft', 'aligncenter', 'alignright', 'link', 'unlink', 'wp_more', 'spellchecker' );
    595595
    596                 if ( $set['_content_editor_dfw'] ) {
    597                     $mce_buttons[] = 'dfw';
    598                 } else {
    599                     $mce_buttons[] = 'fullscreen';
     596                if ( ! wp_is_mobile() ) {
     597                    if ( $set['_content_editor_dfw'] ) {
     598                        $mce_buttons[] = 'dfw';
     599                    } else {
     600                        $mce_buttons[] = 'fullscreen';
     601                    }
    600602                }
    601603
Note: See TracChangeset for help on using the changeset viewer.