Make WordPress Core


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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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        /**
Note: See TracChangeset for help on using the changeset viewer.