From 757652fe0193759649f3b632f1327f8846f13781 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Thu, 5 Jul 2012 20:28:01 +0000 Subject: [PATCH] Clarify that 'html' refers to the Text editor tab, see #20993 git-svn-id: https://develop.svn.wordpress.org/trunk@21218 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/js/editor.dev.js | 2 +- wp-includes/class-wp-editor.php | 1 + wp-includes/general-template.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-admin/js/editor.dev.js b/wp-admin/js/editor.dev.js index 93bb6d4f35..1c1d294206 100644 --- a/wp-admin/js/editor.dev.js +++ b/wp-admin/js/editor.dev.js @@ -7,7 +7,7 @@ var switchEditors = { this.go(id, mode); }, - go: function(id, mode) { // mode can be 'html', 'tmce', or 'toggle' + go: function(id, mode) { // mode can be 'html', 'tmce', or 'toggle'; 'html' is used for the "Text" editor tab. id = id || 'content'; mode = mode || 'toggle'; diff --git a/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php index 5d305b5bb8..7dc908d6e4 100644 --- a/wp-includes/class-wp-editor.php +++ b/wp-includes/class-wp-editor.php @@ -76,6 +76,7 @@ final class _WP_Editors { if ( self::$this_quicktags && self::$this_tinymce ) { $switch_class = 'html-active'; + // 'html' and 'switch-html' are used for the "Text" editor tab. if ( 'html' == wp_default_editor() ) { add_filter('the_editor_content', 'wp_htmledit_pre'); } else { diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 19726961e7..666e0b70f6 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -1767,7 +1767,7 @@ function user_can_richedit() { * Find out which editor should be displayed by default. * * Works out which of the two editors to display as the current editor for a - * user. + * user. The 'html' setting is for the "Text" editor tab. * * @since 2.5.0 *