From e5e8ccbd3af57453c25439733b1ad8a965581449 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 16 Dec 2023 09:29:16 +0000 Subject: [PATCH] Docs: Document the `$current_screen` global in `_WP_Editors::editor()`. Follow-up to [32899]. Props viralsampat. See #60021. git-svn-id: https://develop.svn.wordpress.org/trunk@57193 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-editor.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-includes/class-wp-editor.php b/src/wp-includes/class-wp-editor.php index bd73540bc9..5d7ba224cc 100644 --- a/src/wp-includes/class-wp-editor.php +++ b/src/wp-includes/class-wp-editor.php @@ -149,6 +149,8 @@ final class _WP_Editors { * * @since 3.3.0 * + * @global WP_Screen $current_screen WordPress current screen object. + * * @param string $content Initial content for the editor. * @param string $editor_id HTML ID for the textarea and TinyMCE and Quicktags instances. * Should not contain square brackets.