Skip to content

Commit ed9264b

Browse files
authored
Merge pull request #50 from BrianHenryIE/patch-1
2 parents a8df964 + e6b03f1 commit ed9264b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

activate.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
*/
1616
function sqlite_plugin_activation_redirect( $plugin ) {
1717
if ( plugin_basename( SQLITE_MAIN_FILE ) === $plugin ) {
18-
wp_redirect( admin_url( 'options-general.php?page=sqlite-integration' ) );
19-
exit;
18+
if( wp_safe_redirect( admin_url( 'options-general.php?page=sqlite-integration' ) ) ) {
19+
exit;
20+
}
2021
}
2122
}
2223
add_action( 'activated_plugin', 'sqlite_plugin_activation_redirect' );

0 commit comments

Comments
 (0)