Docs: Add missing description for $current_screen global.

Props mukesh27.
Fixes #45604. See #47110.

git-svn-id: https://develop.svn.wordpress.org/trunk@45740 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2019-08-04 02:02:10 +00:00
parent d19f4d7ff4
commit a7b20de958
5 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -985,7 +985,7 @@ function wp_clone( $object ) {
*
* @since 1.5.1
*
* @global WP_Screen $current_screen
* @global WP_Screen $current_screen WordPress current screen object.
*
* @return bool True if inside WordPress administration interface, false otherwise.
*/
@@ -1009,7 +1009,7 @@ function is_admin() {
*
* @since 3.1.0
*
* @global WP_Screen $current_screen
* @global WP_Screen $current_screen WordPress current screen object.
*
* @return bool True if inside WordPress blog administration pages.
*/
@@ -1036,7 +1036,7 @@ function is_blog_admin() {
*
* @since 3.1.0
*
* @global WP_Screen $current_screen
* @global WP_Screen $current_screen WordPress current screen object.
*
* @return bool True if inside WordPress network administration pages.
*/
@@ -1060,7 +1060,7 @@ function is_network_admin() {
*
* @since 3.1.0
*
* @global WP_Screen $current_screen
* @global WP_Screen $current_screen WordPress current screen object.
*
* @return bool True if inside WordPress user administration pages.
*/
+2 -2
View File
@@ -2708,7 +2708,7 @@ function script_concat_settings() {
*
* @since 5.0.0
*
* @global WP_Screen $current_screen
* @global WP_Screen $current_screen WordPress current screen object.
*/
function wp_common_block_scripts_and_styles() {
global $current_screen;
@@ -2742,7 +2742,7 @@ function wp_common_block_scripts_and_styles() {
*
* @since 5.0.0
*
* @global WP_Screen $current_screen
* @global WP_Screen $current_screen WordPress current screen object.
*/
function wp_enqueue_registered_block_scripts_and_styles() {
global $current_screen;