diff --git a/wp-admin/about.php b/wp-admin/about.php index 75d3635df9..5b65bd06d2 100644 --- a/wp-admin/about.php +++ b/wp-admin/about.php @@ -9,6 +9,7 @@ /** WordPress Administration Bootstrap */ require_once __DIR__ . '/admin.php'; +// Used in the HTML title tag. /* translators: Page title of the About WordPress page in the admin. */ $title = _x( 'About', 'page title' ); diff --git a/wp-admin/admin.php b/wp-admin/admin.php index 45849d6a17..d06890259e 100644 --- a/wp-admin/admin.php +++ b/wp-admin/admin.php @@ -334,9 +334,10 @@ if ( isset( $plugin_page ) ) { */ do_action( "load-importer-{$importer}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores + // Used in the HTML title tag. + $title = __( 'Import' ); $parent_file = 'tools.php'; $submenu_file = 'import.php'; - $title = __( 'Import' ); if ( ! isset( $_GET['noheader'] ) ) { require_once ABSPATH . 'wp-admin/admin-header.php'; diff --git a/wp-admin/authorize-application.php b/wp-admin/authorize-application.php index 0552aeadb2..1d56b47e7d 100644 --- a/wp-admin/authorize-application.php +++ b/wp-admin/authorize-application.php @@ -62,6 +62,7 @@ if ( isset( $_POST['action'] ) && 'authorize_application_password' === $_POST['a } } +// Used in the HTML title tag. $title = __( 'Authorize Application' ); $app_name = ! empty( $_REQUEST['app_name'] ) ? $_REQUEST['app_name'] : ''; diff --git a/wp-admin/comment.php b/wp-admin/comment.php index f2b3c32f3f..4c09a6085e 100644 --- a/wp-admin/comment.php +++ b/wp-admin/comment.php @@ -53,6 +53,7 @@ if ( isset( $_REQUEST['c'] ) ) { switch ( $action ) { case 'editcomment': + // Used in the HTML title tag. $title = __( 'Edit Comment' ); get_current_screen()->add_help_tab( @@ -96,6 +97,7 @@ switch ( $action ) { case 'approve': case 'trash': case 'spam': + // Used in the HTML title tag. $title = __( 'Moderate Comment' ); if ( ! $comment ) { diff --git a/wp-admin/credits.php b/wp-admin/credits.php index 460b722b76..65eb55792c 100644 --- a/wp-admin/credits.php +++ b/wp-admin/credits.php @@ -10,6 +10,7 @@ require_once __DIR__ . '/admin.php'; require_once __DIR__ . '/includes/credits.php'; +// Used in the HTML title tag. $title = __( 'Credits' ); list( $display_version ) = explode( '-', get_bloginfo( 'version' ) ); diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index 38f2bdd80b..f54d0abd8f 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -138,7 +138,9 @@ enqueue_comment_hotkeys_js(); if ( $post_id ) { $comments_count = wp_count_comments( $post_id ); $draft_or_post_title = wp_html_excerpt( _draft_or_post_title( $post_id ), 50, '…' ); + if ( $comments_count->moderated > 0 ) { + // Used in the HTML title tag. $title = sprintf( /* translators: 1: Comments count, 2: Post title. */ __( 'Comments (%1$s) on “%2$s”' ), @@ -146,6 +148,7 @@ if ( $post_id ) { $draft_or_post_title ); } else { + // Used in the HTML title tag. $title = sprintf( /* translators: %s: Post title. */ __( 'Comments on “%s”' ), @@ -154,13 +157,16 @@ if ( $post_id ) { } } else { $comments_count = wp_count_comments(); + if ( $comments_count->moderated > 0 ) { + // Used in the HTML title tag. $title = sprintf( /* translators: %s: Comments count. */ __( 'Comments (%s)' ), number_format_i18n( $comments_count->moderated ) ); } else { + // Used in the HTML title tag. $title = __( 'Comments' ); } } diff --git a/wp-admin/edit.php b/wp-admin/edit.php index e05d3ce195..2b917b994d 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -232,6 +232,7 @@ if ( 'wp_block' === $post_type ) { wp_enqueue_style( 'wp-list-reusable-blocks' ); } +// Used in the HTML title tag. $title = $post_type_object->labels->name; if ( 'post' === $post_type ) { diff --git a/wp-admin/export.php b/wp-admin/export.php index 51acc7ed3c..df7e94541f 100644 --- a/wp-admin/export.php +++ b/wp-admin/export.php @@ -15,6 +15,8 @@ if ( ! current_user_can( 'export' ) ) { /** Load WordPress export API */ require_once ABSPATH . 'wp-admin/includes/export.php'; + +// Used in the HTML title tag. $title = __( 'Export' ); /** diff --git a/wp-admin/freedoms.php b/wp-admin/freedoms.php index be6fd6d65f..0a2d6ca241 100644 --- a/wp-admin/freedoms.php +++ b/wp-admin/freedoms.php @@ -15,6 +15,7 @@ if ( isset( $_GET['privacy-notice'] ) ) { exit; } +// Used in the HTML title tag. $title = __( 'Freedoms' ); list( $display_version ) = explode( '-', get_bloginfo( 'version' ) ); diff --git a/wp-admin/import.php b/wp-admin/import.php index e732c55b8f..fe911f86c9 100644 --- a/wp-admin/import.php +++ b/wp-admin/import.php @@ -15,6 +15,7 @@ if ( ! current_user_can( 'import' ) ) { wp_die( __( 'Sorry, you are not allowed to import content into this site.' ) ); } +// Used in the HTML title tag. $title = __( 'Import' ); get_current_screen()->add_help_tab( diff --git a/wp-admin/index.php b/wp-admin/index.php index 6c704cc2fe..4b4f149321 100644 --- a/wp-admin/index.php +++ b/wp-admin/index.php @@ -29,6 +29,7 @@ if ( wp_is_mobile() ) { wp_enqueue_script( 'jquery-touch-punch' ); } +// Used in the HTML title tag. $title = __( 'Dashboard' ); $parent_file = 'index.php'; diff --git a/wp-admin/link-add.php b/wp-admin/link-add.php index ab73d9b404..d8c98bb5c7 100644 --- a/wp-admin/link-add.php +++ b/wp-admin/link-add.php @@ -13,6 +13,7 @@ if ( ! current_user_can( 'manage_links' ) ) { wp_die( __( 'Sorry, you are not allowed to add links to this site.' ) ); } +// Used in the HTML title tag. $title = __( 'Add New Link' ); $parent_file = 'link-manager.php'; diff --git a/wp-admin/link-manager.php b/wp-admin/link-manager.php index ff8dba12dc..47f0354776 100644 --- a/wp-admin/link-manager.php +++ b/wp-admin/link-manager.php @@ -46,6 +46,7 @@ if ( $doaction && isset( $_REQUEST['linkcheck'] ) ) { $wp_list_table->prepare_items(); +// Used in the HTML title tag. $title = __( 'Links' ); $this_file = 'link-manager.php'; $parent_file = $this_file; diff --git a/wp-admin/link.php b/wp-admin/link.php index 5494f9f15f..b978d87aab 100644 --- a/wp-admin/link.php +++ b/wp-admin/link.php @@ -108,6 +108,7 @@ switch ( $action ) { $parent_file = 'link-manager.php'; $submenu_file = 'link-manager.php'; + // Used in the HTML title tag. $title = __( 'Edit Link' ); $link_id = (int) $_GET['link_id']; diff --git a/wp-admin/media-new.php b/wp-admin/media-new.php index 97426512a4..94fa50ff3d 100644 --- a/wp-admin/media-new.php +++ b/wp-admin/media-new.php @@ -39,6 +39,7 @@ if ( $_POST ) { exit; } +// Used in the HTML title tag. $title = __( 'Upload New Media' ); $parent_file = 'upload.php'; diff --git a/wp-admin/media.php b/wp-admin/media.php index da63f27ea0..fe2e9a8617 100644 --- a/wp-admin/media.php +++ b/wp-admin/media.php @@ -45,6 +45,7 @@ switch ( $action ) { // No break. case 'edit': + // Used in the HTML title tag. $title = __( 'Edit Media' ); if ( empty( $errors ) ) { diff --git a/wp-admin/ms-delete-site.php b/wp-admin/ms-delete-site.php index c552f354f3..77246a4db7 100644 --- a/wp-admin/ms-delete-site.php +++ b/wp-admin/ms-delete-site.php @@ -35,8 +35,10 @@ if ( isset( $_GET['h'] ) && '' !== $_GET['h'] && false !== get_option( 'delete_b $blog = get_site(); $user = wp_get_current_user(); +// Used in the HTML title tag. $title = __( 'Delete Site' ); $parent_file = 'tools.php'; + require_once ABSPATH . 'wp-admin/admin-header.php'; echo '
' . __( 'Sorry, you are not allowed to edit templates for this site.' ) . '
' ); } +// Used in the HTML title tag. $title = __( 'Edit Themes' ); $parent_file = 'themes.php'; diff --git a/wp-admin/theme-install.php b/wp-admin/theme-install.php index 4d377d831a..4f0ba2ad66 100644 --- a/wp-admin/theme-install.php +++ b/wp-admin/theme-install.php @@ -21,6 +21,7 @@ if ( is_multisite() && ! is_network_admin() ) { exit; } +// Used in the HTML title tag. $title = __( 'Add Themes' ); $parent_file = 'themes.php'; diff --git a/wp-admin/themes.php b/wp-admin/themes.php index 2a230ee504..87b1b6db7a 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -123,6 +123,7 @@ if ( current_user_can( 'switch_themes' ) && isset( $_GET['action'] ) ) { } } +// Used in the HTML title tag. $title = __( 'Manage Themes' ); $parent_file = 'themes.php'; diff --git a/wp-admin/tools.php b/wp-admin/tools.php index d2c2061a0b..8095e4726b 100644 --- a/wp-admin/tools.php +++ b/wp-admin/tools.php @@ -39,6 +39,7 @@ if ( isset( $_GET['wp-privacy-policy-guide'] ) ) { /** WordPress Administration Bootstrap */ require_once __DIR__ . '/admin.php'; +// Used in the HTML title tag. $title = __( 'Tools' ); get_current_screen()->add_help_tab( diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index ae3924c9b2..6e23d66866 100644 --- a/wp-admin/update-core.php +++ b/wp-admin/update-core.php @@ -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'; diff --git a/wp-admin/update.php b/wp-admin/update.php index 7980ea7a8b..a4a2abf8db 100644 --- a/wp-admin/update.php +++ b/wp-admin/update.php @@ -59,6 +59,7 @@ if ( isset( $_GET['action'] ) ) { check_admin_referer( 'upgrade-plugin_' . $plugin ); + // Used in the HTML title tag. $title = __( 'Update Plugin' ); $parent_file = 'plugins.php'; $submenu_file = 'plugins.php'; @@ -123,9 +124,11 @@ if ( isset( $_GET['action'] ) ) { wp_die( $api ); } + // Used in the HTML title tag. $title = __( 'Plugin Installation' ); $parent_file = 'plugins.php'; $submenu_file = 'plugin-install.php'; + require_once ABSPATH . 'wp-admin/admin-header.php'; /* translators: %s: Plugin name and version. */ @@ -153,9 +156,11 @@ if ( isset( $_GET['action'] ) ) { $file_upload = new File_Upload_Upgrader( 'pluginzip', 'package' ); + // Used in the HTML title tag. $title = __( 'Upload Plugin' ); $parent_file = 'plugins.php'; $submenu_file = 'plugin-install.php'; + require_once ABSPATH . 'wp-admin/admin-header.php'; /* translators: %s: File name. */ @@ -206,9 +211,11 @@ if ( isset( $_GET['action'] ) ) { wp_enqueue_script( 'updates' ); + // Used in the HTML title tag. $title = __( 'Update Theme' ); $parent_file = 'themes.php'; $submenu_file = 'themes.php'; + require_once ABSPATH . 'wp-admin/admin-header.php'; $nonce = 'upgrade-theme_' . $theme; @@ -269,9 +276,11 @@ if ( isset( $_GET['action'] ) ) { wp_die( $api ); } + // Used in the HTML title tag. $title = __( 'Install Themes' ); $parent_file = 'themes.php'; $submenu_file = 'themes.php'; + require_once ABSPATH . 'wp-admin/admin-header.php'; /* translators: %s: Theme name and version. */ @@ -295,6 +304,7 @@ if ( isset( $_GET['action'] ) ) { $file_upload = new File_Upload_Upgrader( 'themezip', 'package' ); + // Used in the HTML title tag. $title = __( 'Upload Theme' ); $parent_file = 'themes.php'; $submenu_file = 'theme-install.php'; diff --git a/wp-admin/upload.php b/wp-admin/upload.php index d1de3561ca..fe7c9fdf21 100644 --- a/wp-admin/upload.php +++ b/wp-admin/upload.php @@ -76,6 +76,7 @@ if ( 'grid' === $mode ) { '' . __( 'Support' ) . '
' ); + // 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'; diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index 4e8f2520cc..0cd381caf2 100644 --- a/wp-admin/user-edit.php +++ b/wp-admin/user-edit.php @@ -32,8 +32,10 @@ if ( wp_is_application_passwords_available_for_user( $user_id ) ) { } if ( IS_PROFILE_PAGE ) { + // Used in the HTML title tag. $title = __( 'Profile' ); } else { + // Used in the HTML title tag. /* translators: %s: User's display name. */ $title = __( 'Edit User %s' ); } diff --git a/wp-admin/user-new.php b/wp-admin/user-new.php index 76195c3f63..26da6a0ec4 100644 --- a/wp-admin/user-new.php +++ b/wp-admin/user-new.php @@ -245,6 +245,7 @@ Please click the following link to confirm the invite: } } +// Used in the HTML title tag. $title = __( 'Add New User' ); $parent_file = 'users.php'; diff --git a/wp-admin/users.php b/wp-admin/users.php index 133015be3b..c3450dfd4b 100644 --- a/wp-admin/users.php +++ b/wp-admin/users.php @@ -20,8 +20,10 @@ if ( ! current_user_can( 'list_users' ) ) { $wp_list_table = _get_list_table( 'WP_Users_List_Table' ); $pagenum = $wp_list_table->get_pagenum(); -$title = __( 'Users' ); -$parent_file = 'users.php'; + +// Used in the HTML title tag. +$title = __( 'Users' ); +$parent_file = 'users.php'; add_screen_option( 'per_page' ); diff --git a/wp-admin/widgets.php b/wp-admin/widgets.php index 88a58f59ba..100c62eb93 100644 --- a/wp-admin/widgets.php +++ b/wp-admin/widgets.php @@ -24,6 +24,7 @@ if ( ! current_theme_supports( 'widgets' ) ) { wp_die( __( 'The theme you are currently using isn’t widget-aware, meaning that it has no sidebars that you are able to change. For information on making your theme widget-aware, please follow these instructions.' ) ); } +// Used in the HTML title tag. $title = __( 'Widgets' ); $parent_file = 'themes.php'; diff --git a/wp-includes/version.php b/wp-includes/version.php index c5a2d5740e..254c43a08a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-51474'; +$wp_version = '5.9-alpha-51475'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.