From 981ddfc4b0f288445a080192e4ebe5ba014d25a1 Mon Sep 17 00:00:00 2001 From: Krupal Date: Fri, 17 Nov 2023 19:24:17 +0530 Subject: [PATCH 1/2] Updated Doc Block for Admin.php --- php/WP_CLI/Context/Admin.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/php/WP_CLI/Context/Admin.php b/php/WP_CLI/Context/Admin.php index c7e3fc066..5c0fa736e 100644 --- a/php/WP_CLI/Context/Admin.php +++ b/php/WP_CLI/Context/Admin.php @@ -87,6 +87,11 @@ private function log_in_as_admin_user() { * * To make this work across WordPress versions, we use the actual file and * modify it on-the-fly. + * + * @global string $hook_suffix + * @global string $pagenow + * @global int $wp_db_version + * @global array $_wp_submenu_nopriv * * @return void */ From f9b3015a33872e777e38c776b0343d14eec42dc2 Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Sat, 18 Nov 2023 11:50:20 +0100 Subject: [PATCH 2/2] Fix PHPCS issue --- php/WP_CLI/Context/Admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/WP_CLI/Context/Admin.php b/php/WP_CLI/Context/Admin.php index 5c0fa736e..a381036e6 100644 --- a/php/WP_CLI/Context/Admin.php +++ b/php/WP_CLI/Context/Admin.php @@ -87,7 +87,7 @@ private function log_in_as_admin_user() { * * To make this work across WordPress versions, we use the actual file and * modify it on-the-fly. - * + * * @global string $hook_suffix * @global string $pagenow * @global int $wp_db_version