From db0ca19899840f80d6a48cf536928bec154a4e2c Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Mon, 31 Aug 2015 22:45:22 +0000 Subject: [PATCH] TinyMCE: disable the native fullscreen plugin on mobile devices by default. Props iseulde. Fixes #33137; Built from https://develop.svn.wordpress.org/trunk@33835 git-svn-id: http://core.svn.wordpress.org/trunk@33803 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-editor.php | 10 ++++++---- wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php index 1baafde3d0..b83454e463 100644 --- a/wp-includes/class-wp-editor.php +++ b/wp-includes/class-wp-editor.php @@ -593,10 +593,12 @@ final class _WP_Editors { } else { $mce_buttons = array( 'bold', 'italic', 'strikethrough', 'bullist', 'numlist', 'blockquote', 'hr', 'alignleft', 'aligncenter', 'alignright', 'link', 'unlink', 'wp_more', 'spellchecker' ); - if ( $set['_content_editor_dfw'] ) { - $mce_buttons[] = 'dfw'; - } else { - $mce_buttons[] = 'fullscreen'; + if ( ! wp_is_mobile() ) { + if ( $set['_content_editor_dfw'] ) { + $mce_buttons[] = 'dfw'; + } else { + $mce_buttons[] = 'fullscreen'; + } } $mce_buttons[] = 'wp_adv'; diff --git a/wp-includes/version.php b/wp-includes/version.php index 5b2ec9eea8..a5a2f1f555 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-33834'; +$wp_version = '4.4-alpha-33835'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.