From f36a1ab9b5d657d0dea55cd4b8225a50a20d8d6b Mon Sep 17 00:00:00 2001 From: "Drew Jaynes (DrewAPicture)" Date: Fri, 28 Mar 2014 05:45:54 +0000 Subject: [PATCH] Convert `wp_editor()` default arguments documentation to a hash notation in the `_WP_Editors::parse_settings()` PHPDoc. See #27566. git-svn-id: https://develop.svn.wordpress.org/trunk@27808 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-editor.php | 59 ++++++++++++++++++++++------- 1 file changed, 45 insertions(+), 14 deletions(-) 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