diff --git a/src/Container.php b/src/Container.php index 77fea19bf52..a772874f64e 100644 --- a/src/Container.php +++ b/src/Container.php @@ -30,6 +30,7 @@ ! interface_exists( ContainerInterface::class ) && isset( $_GET['action'] ) // phpcs:ignore WordPress.Security.NonceVerification.Recommended && 'upload-plugin' === $_GET['action'] // phpcs:ignore WordPress.Security.NonceVerification.Recommended + && isset( $GLOBALS['pagenow'] ) && 'update.php' === $GLOBALS['pagenow'] ) { wp_die( 'Updated successfully. Please reload the page.' );