Skip to content

Commit a7b20de

Browse files
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
1 parent d19f4d7 commit a7b20de

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/wp-admin/admin-header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @global string $title
1818
* @global string $hook_suffix
19-
* @global WP_Screen $current_screen
19+
* @global WP_Screen $current_screen WordPress current screen object.
2020
* @global WP_Locale $wp_locale WordPress date and time locale object.
2121
* @global string $pagenow
2222
* @global string $update_title

src/wp-admin/includes/class-wp-screen.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ public static function get( $hook_name = '' ) {
392392
* @see set_current_screen()
393393
* @since 3.3.0
394394
*
395-
* @global WP_Screen $current_screen
395+
* @global WP_Screen $current_screen WordPress current screen object.
396396
* @global string $taxnow
397397
* @global string $typenow
398398
*/

src/wp-admin/includes/screen.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ function add_screen_option( $option, $args = array() ) {
215215
*
216216
* @since 3.1.0
217217
*
218-
* @global WP_Screen $current_screen
218+
* @global WP_Screen $current_screen WordPress current screen object.
219219
*
220220
* @return WP_Screen|null Current screen object or null when screen not defined.
221221
*/

src/wp-includes/load.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ function wp_clone( $object ) {
985985
*
986986
* @since 1.5.1
987987
*
988-
* @global WP_Screen $current_screen
988+
* @global WP_Screen $current_screen WordPress current screen object.
989989
*
990990
* @return bool True if inside WordPress administration interface, false otherwise.
991991
*/
@@ -1009,7 +1009,7 @@ function is_admin() {
10091009
*
10101010
* @since 3.1.0
10111011
*
1012-
* @global WP_Screen $current_screen
1012+
* @global WP_Screen $current_screen WordPress current screen object.
10131013
*
10141014
* @return bool True if inside WordPress blog administration pages.
10151015
*/
@@ -1036,7 +1036,7 @@ function is_blog_admin() {
10361036
*
10371037
* @since 3.1.0
10381038
*
1039-
* @global WP_Screen $current_screen
1039+
* @global WP_Screen $current_screen WordPress current screen object.
10401040
*
10411041
* @return bool True if inside WordPress network administration pages.
10421042
*/
@@ -1060,7 +1060,7 @@ function is_network_admin() {
10601060
*
10611061
* @since 3.1.0
10621062
*
1063-
* @global WP_Screen $current_screen
1063+
* @global WP_Screen $current_screen WordPress current screen object.
10641064
*
10651065
* @return bool True if inside WordPress user administration pages.
10661066
*/

src/wp-includes/script-loader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2708,7 +2708,7 @@ function script_concat_settings() {
27082708
*
27092709
* @since 5.0.0
27102710
*
2711-
* @global WP_Screen $current_screen
2711+
* @global WP_Screen $current_screen WordPress current screen object.
27122712
*/
27132713
function wp_common_block_scripts_and_styles() {
27142714
global $current_screen;
@@ -2742,7 +2742,7 @@ function wp_common_block_scripts_and_styles() {
27422742
*
27432743
* @since 5.0.0
27442744
*
2745-
* @global WP_Screen $current_screen
2745+
* @global WP_Screen $current_screen WordPress current screen object.
27462746
*/
27472747
function wp_enqueue_registered_block_scripts_and_styles() {
27482748
global $current_screen;

0 commit comments

Comments
 (0)