From 08a0225d5cdca88494be66746858467a974deb61 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 23 May 2016 16:33:22 +0000 Subject: [PATCH] Docs: Update the return notation for `get_current_screen()` to note that `null` can also be returned if the screen has not been defined. Props screamingdev. Fixes #36382. git-svn-id: https://develop.svn.wordpress.org/trunk@37534 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/screen.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/screen.php b/src/wp-admin/includes/screen.php index 0bbffc04f7..3c6a5131b9 100644 --- a/src/wp-admin/includes/screen.php +++ b/src/wp-admin/includes/screen.php @@ -200,7 +200,7 @@ function add_screen_option( $option, $args = array() ) { * * @global WP_Screen $current_screen * - * @return WP_Screen Current screen object + * @return WP_Screen|null Current screen object or null when screen not defined. */ function get_current_screen() { global $current_screen;