Make WordPress Core


Ignore:
Timestamp:
07/22/2021 01:51:58 PM (2 years 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/admin.php

    r51327 r51475  
    335335    do_action( "load-importer-{$importer}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    336336
     337    // Used in the HTML title tag.
     338    $title        = __( 'Import' );
    337339    $parent_file  = 'tools.php';
    338340    $submenu_file = 'import.php';
    339     $title        = __( 'Import' );
    340341
    341342    if ( ! isset( $_GET['noheader'] ) ) {
Note: See TracChangeset for help on using the changeset viewer.