diff --git a/src/wp-includes/class-wp-editor.php b/src/wp-includes/class-wp-editor.php index b7a9a051a9..adbb556976 100644 --- a/src/wp-includes/class-wp-editor.php +++ b/src/wp-includes/class-wp-editor.php @@ -27,21 +27,52 @@ final class _WP_Editors { private function __construct() {} - public static function parse_settings($editor_id, $settings) { + /** + * Parse _WP_Editors settings. + * + * @param string $editor_id ID for the current editor isntance. + * @param array $settings { + * Array of editor arguments. + * + * @type bool $wpautop Whether to use wpautop(). Default true. + * @type bool $media_buttons Whether to show the Add Media/other media buttons. + * @type string $default_editor When both TinyMCE and Quicktags are used, set which + * editor is shown on page load. Default empty. + * @type string $textarea_name Give the textarea a unique name here. Square brackets + * can be used here. Default $editor_id. + * @type int $textarea_rows Number rows in the editor textarea. Default 20. + * @type string|int $tabindex Tabindex value to use. Default empty. + * @type string $tabfocus_elements The previous and next element ID to move the focus to + * when pressing the Tab key in TinyMCE. Defualt ':prev,:next'. + * @type string $editor_css Intended for extra styles for both Visual and Text editors. + * Should include