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.

git-svn-id: https://develop.svn.wordpress.org/trunk@51475 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2021-07-22 13:51:58 +00:00
parent 49b11dcad7
commit 41df21e70d
54 changed files with 92 additions and 3 deletions

View File

@@ -76,6 +76,7 @@ if ( 'grid' === $mode ) {
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
);
// Used in the HTML title tag.
$title = __( 'Media Library' );
$parent_file = 'upload.php';
@@ -215,6 +216,7 @@ if ( $doaction ) {
$wp_list_table->prepare_items();
// Used in the HTML title tag.
$title = __( 'Media Library' );
$parent_file = 'upload.php';