Skip to content

Commit

Permalink
Checking for pagenow
Browse files Browse the repository at this point in the history
  • Loading branch information
RadoslavGeorgiev committed Oct 20, 2023
1 parent cff13a5 commit c6d4d49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.' );
Expand Down

0 comments on commit c6d4d49

Please sign in to comment.