$height = ' rows="' .
(int) $set['textarea_rows'
] . '"';
} if ( !
current_user_can( 'upload_files'
) ) { $set['media_buttons'
] = false;
} if ( self::
$this_tinymce ) { $autocomplete = ' autocomplete="off"';
if ( self::
$this_quicktags ) { $default_editor =
$set['default_editor'
] ?
$set['default_editor'
] :
wp_default_editor();
// 'html' is used for the "Text" editor tab.
if ( 'html' !==
$default_editor ) { $default_editor = 'tinymce';
} $buttons .= '<button type="button" id="' .
$editor_id_attr . '-tmce" class="wp-switch-editor switch-tmce"' .
' data-wp-editor-id="' .
$editor_id_attr . '">' .
_x( 'Visual', 'Name for the Visual editor tab'
) . "</button>\n";
$buttons .= '<button type="button" id="' .
$editor_id_attr . '-html" class="wp-switch-editor switch-html"' .
' data-wp-editor-id="' .
$editor_id_attr . '">' .
_x( 'Text', 'Name for the Text editor tab (formerly HTML)'
) . "</button>\n";
} else { $default_editor = 'tinymce';
}