Make WordPress Core


Ignore:
Timestamp:
07/22/2021 01:51:58 PM (23 months ago)
Author:
SergeyBiryukov
Message:

Docs: Add a comment about the $title global usage in various admin files.

This should make it clear that the variable is used as part of the HTML <title> tag on admin screens.

Props ravipatel, hellofromTonya, sabernhardt, audrasjb, SergeyBiryukov.
Fixes #53729.

File:
1 edited

Legend:

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

    r51177 r51475  
    2121$wp_list_table = _get_list_table( 'WP_Users_List_Table' );
    2222$pagenum       = $wp_list_table->get_pagenum();
    23 $title         = __( 'Users' );
    24 $parent_file   = 'users.php';
     23
     24// Used in the HTML title tag.
     25$title       = __( 'Users' );
     26$parent_file = 'users.php';
    2527
    2628add_screen_option( 'per_page' );
Note: See TracChangeset for help on using the changeset viewer.