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. Built from https://develop.svn.wordpress.org/trunk@51475 git-svn-id: http://core.svn.wordpress.org/trunk@51086 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1136,6 +1136,7 @@ if ( 'upgrade-core' === $action ) {
|
||||
$url = 'update.php?action=update-selected&plugins=' . urlencode( implode( ',', $plugins ) );
|
||||
$url = wp_nonce_url( $url, 'bulk-update-plugins' );
|
||||
|
||||
// Used in the HTML title tag.
|
||||
$title = __( 'Update Plugins' );
|
||||
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
@@ -1176,6 +1177,7 @@ if ( 'upgrade-core' === $action ) {
|
||||
$url = 'update.php?action=update-selected-themes&themes=' . urlencode( implode( ',', $themes ) );
|
||||
$url = wp_nonce_url( $url, 'bulk-update-themes' );
|
||||
|
||||
// Used in the HTML title tag.
|
||||
$title = __( 'Update Themes' );
|
||||
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
|
||||
Reference in New Issue
Block a user