From c386c174578287e4868e83a71b8c159ed82dd19f Mon Sep 17 00:00:00 2001 From: "Drew Jaynes (DrewAPicture)" Date: Mon, 7 Apr 2014 23:08:46 +0000 Subject: [PATCH] Improve hook docs for the `wp_enqueue_editor` hook, added in 3.9. See #16284, #27700. git-svn-id: https://develop.svn.wordpress.org/trunk@28026 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-editor.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/class-wp-editor.php b/src/wp-includes/class-wp-editor.php index 2b2b343886..cd102b0b37 100644 --- a/src/wp-includes/class-wp-editor.php +++ b/src/wp-includes/class-wp-editor.php @@ -735,13 +735,17 @@ final class _WP_Editors { } /** - * Fires when scripts and styles are enqueued for the editor + * Fires when scripts and styles are enqueued for the editor. * * @since 3.9.0 * - * @param array An array containing boolean values whether TinyMCE and Quicktags are being loaded. + * @param array $to_load An array containing boolean values whether TinyMCE + * and Quicktags are being loaded. */ - do_action( 'wp_enqueue_editor', array( 'tinymce' => self::$has_tinymce, 'quicktags' => self::$has_quicktags ) ); + do_action( 'wp_enqueue_editor', array( + 'tinymce' => self::$has_tinymce, + 'quicktags' => self::$has_quicktags, + ) ); } public static function wp_mce_translation() {