From ffa9318933065c3ed587de9bebbc6d9556f25536 Mon Sep 17 00:00:00 2001 From: Lena Stergatou Date: Wed, 19 Oct 2022 13:21:29 +0300 Subject: [PATCH 1/2] New action at the end of /wp-admin/import.php The patch adds an action in /wp-admin/import.php page much like the one we have on other administration pages ex. tools page in https://core.trac.wordpress.org/browser/trunk/src/wp-admin/tools.php#L93 --- src/wp-admin/import.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/wp-admin/import.php b/src/wp-admin/import.php index fe911f86c94da..0bdf16dab7d02 100644 --- a/src/wp-admin/import.php +++ b/src/wp-admin/import.php @@ -230,6 +230,13 @@ esc_url( network_admin_url( 'plugin-install.php?tab=search&type=tag&s=importer' ) ) ) . '

'; } + +/** +* Fires at the end of the importers Administration screen. +* +*/ +do_action( 'after_importers' ); + ?> From ca168b2ac2e43ff234cac07a32d574d815884bdc Mon Sep 17 00:00:00 2001 From: Lena Stergatou Date: Wed, 19 Oct 2022 13:25:48 +0300 Subject: [PATCH 2/2] Update import.php --- src/wp-admin/import.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/wp-admin/import.php b/src/wp-admin/import.php index 0bdf16dab7d02..204bdce265aec 100644 --- a/src/wp-admin/import.php +++ b/src/wp-admin/import.php @@ -236,7 +236,6 @@ * */ do_action( 'after_importers' ); - ?>