--- a/wp/wp-admin/admin.php Wed Sep 21 18:19:35 2022 +0200
+++ b/wp/wp-admin/admin.php Tue Sep 27 16:37:53 2022 +0200
@@ -116,16 +116,16 @@
wp_enqueue_script( 'common' );
/**
- * $pagenow is set in vars.php
- * $wp_importers is sometimes set in wp-admin/includes/import.php
- * The remaining variables are imported as globals elsewhere, declared as globals here
+ * $pagenow is set in vars.php.
+ * $wp_importers is sometimes set in wp-admin/includes/import.php.
+ * The remaining variables are imported as globals elsewhere, declared as globals here.
*
- * @global string $pagenow
+ * @global string $pagenow The filename of the current screen.
* @global array $wp_importers
* @global string $hook_suffix
* @global string $plugin_page
- * @global string $typenow
- * @global string $taxnow
+ * @global string $typenow The post type of the current screen.
+ * @global string $taxnow The taxonomy of the current screen.
*/
global $pagenow, $wp_importers, $hook_suffix, $plugin_page, $typenow, $taxnow;
@@ -320,13 +320,24 @@
*
* The dynamic portion of the hook name, `$importer`, refers to the importer slug.
*
+ * Possible hook names include:
+ *
+ * - `load-importer-blogger`
+ * - `load-importer-wpcat2tag`
+ * - `load-importer-livejournal`
+ * - `load-importer-mt`
+ * - `load-importer-rss`
+ * - `load-importer-tumblr`
+ * - `load-importer-wordpress`
+ *
* @since 3.5.0
*/
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';
@@ -365,7 +376,7 @@
* The load-* hook fires in a number of contexts. This hook is for core screens.
*
* The dynamic portion of the hook name, `$pagenow`, is a global variable
- * referring to the filename of the current page, such as 'admin.php',
+ * referring to the filename of the current screen, such as 'admin.php',
* 'post-new.php' etc. A complete hook for the latter would be
* 'load-post-new.php'.
*