Make WordPress Core

Changeset 53061


Ignore:
Timestamp:
04/04/2022 06:37:24 PM (3 years ago)
Author:
SergeyBiryukov
Message:

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

Follow-up to [53060].

See #54729.

Location:
trunk/src/wp-admin
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/admin-header.php

    r53060 r53061  
    2323 * @global int       $total_update_count
    2424 * @global string    $parent_file
    25  * @global string    $typenow
     25 * @global string    $typenow            The post type of the current screen.
    2626 */
    2727global $title, $hook_suffix, $current_screen, $wp_locale, $pagenow,
  • trunk/src/wp-admin/admin.php

    r53060 r53061  
    125125 * @global string $hook_suffix
    126126 * @global string $plugin_page
    127  * @global string $typenow
     127 * @global string $typenow      The post type of the current screen.
    128128 * @global string $taxnow
    129129 */
  • trunk/src/wp-admin/includes/class-wp-screen.php

    r52257 r53061  
    403403     *
    404404     * @global WP_Screen $current_screen WordPress current screen object.
     405     * @global string    $typenow        The post type of the current screen.
    405406     * @global string    $taxnow
    406      * @global string    $typenow
    407407     */
    408408    public function set_current_screen() {
    409409        global $current_screen, $taxnow, $typenow;
     410
    410411        $current_screen = $this;
     412        $typenow        = $this->post_type;
    411413        $taxnow         = $this->taxonomy;
    412         $typenow        = $this->post_type;
    413414
    414415        /**
  • trunk/src/wp-admin/includes/plugin.php

    r53060 r53061  
    18601860 * @global array  $submenu
    18611861 * @global string $pagenow              The filename of the current screen.
    1862  * @global string $typenow
     1862 * @global string $typenow              The post type of the current screen.
    18631863 * @global string $plugin_page
    18641864 * @global array  $_wp_real_parent_file
     
    19481948 *
    19491949 * @global string $title
    1950  * @global array $menu
    1951  * @global array $submenu
     1950 * @global array  $menu
     1951 * @global array  $submenu
    19521952 * @global string $pagenow     The filename of the current screen.
     1953 * @global string $typenow     The post type of the current screen.
    19531954 * @global string $plugin_page
    1954  * @global string $typenow
    19551955 *
    19561956 * @return string The title of the current admin page.
    19571957 */
    19581958function get_admin_page_title() {
    1959     global $title, $menu, $submenu, $pagenow, $plugin_page, $typenow;
     1959    global $title, $menu, $submenu, $pagenow, $typenow, $plugin_page;
    19601960
    19611961    if ( ! empty( $title ) ) {
  • trunk/src/wp-admin/menu-header.php

    r53050 r53061  
    6060 * @global string $submenu_file
    6161 * @global string $plugin_page
    62  * @global string $typenow
     62 * @global string $typenow      The post type of the current screen.
    6363 *
    6464 * @param array $menu
Note: See TracChangeset for help on using the changeset viewer.