Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad Olaru committed Nov 19, 2019
1 parent c9925c3 commit c085c58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/class-pixelgrade_assistant-setup_wizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function setup_wizard() {
}

public function redirect_to_correct_url() {
if ( ! empty( $_GET['page'] ) && 'pixelgrade_assistant-setup-wizard' === $_GET['page'] ) {
if ( ! empty( $_GET['page'] ) && 'pixelgrade_assistant-setup-wizard' === $_GET['page'] && 0 === strpos( wp_unslash( $_SERVER['REQUEST_URI'] ), '/wp-admin/index.php' ) ) {
wp_safe_redirect( admin_url( 'admin.php?page=pixelgrade_assistant-setup-wizard' ) );
return;
}
Expand Down

0 comments on commit c085c58

Please sign in to comment.