Docs: Add missing description for `$typenow` global in various functions.

Follow-up to [53060].

See #54729.
Built from https://develop.svn.wordpress.org/trunk@53061


git-svn-id: http://core.svn.wordpress.org/trunk@52650 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2022-04-04 18:39:01 +00:00
parent 9fb5112732
commit f2e14d4e5f
6 changed files with 12 additions and 11 deletions

View File

@ -22,7 +22,7 @@ if ( ! defined( 'WP_ADMIN' ) ) {
* @global string $update_title
* @global int $total_update_count
* @global string $parent_file
* @global string $typenow
* @global string $typenow The post type of the current screen.
*/
global $title, $hook_suffix, $current_screen, $wp_locale, $pagenow,
$update_title, $total_update_count, $parent_file, $typenow;

View File

@ -124,7 +124,7 @@ wp_enqueue_script( 'common' );
* @global array $wp_importers
* @global string $hook_suffix
* @global string $plugin_page
* @global string $typenow
* @global string $typenow The post type of the current screen.
* @global string $taxnow
*/
global $pagenow, $wp_importers, $hook_suffix, $plugin_page, $typenow, $taxnow;

View File

@ -402,14 +402,15 @@ final class WP_Screen {
* @since 3.3.0
*
* @global WP_Screen $current_screen WordPress current screen object.
* @global string $typenow The post type of the current screen.
* @global string $taxnow
* @global string $typenow
*/
public function set_current_screen() {
global $current_screen, $taxnow, $typenow;
$current_screen = $this;
$taxnow = $this->taxonomy;
$typenow = $this->post_type;
$taxnow = $this->taxonomy;
/**
* Fires after the current screen has been set.

View File

@ -1859,7 +1859,7 @@ function menu_page_url( $menu_slug, $echo = true ) {
* @global array $menu
* @global array $submenu
* @global string $pagenow The filename of the current screen.
* @global string $typenow
* @global string $typenow The post type of the current screen.
* @global string $plugin_page
* @global array $_wp_real_parent_file
* @global array $_wp_menu_nopriv
@ -1947,16 +1947,16 @@ function get_admin_page_parent( $parent = '' ) {
* @since 1.5.0
*
* @global string $title
* @global array $menu
* @global array $submenu
* @global array $menu
* @global array $submenu
* @global string $pagenow The filename of the current screen.
* @global string $typenow The post type of the current screen.
* @global string $plugin_page
* @global string $typenow
*
* @return string The title of the current admin page.
*/
function get_admin_page_title() {
global $title, $menu, $submenu, $pagenow, $plugin_page, $typenow;
global $title, $menu, $submenu, $pagenow, $typenow, $plugin_page;
if ( ! empty( $title ) ) {
return $title;

View File

@ -59,7 +59,7 @@ get_admin_page_parent();
* @global string $parent_file
* @global string $submenu_file
* @global string $plugin_page
* @global string $typenow
* @global string $typenow The post type of the current screen.
*
* @param array $menu
* @param array $submenu

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.0-alpha-53060';
$wp_version = '6.0-alpha-53061';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.