Skip to content

Commit

Permalink
Use wp_safe_redirect() in place of wp_redirect().
Browse files Browse the repository at this point in the history
  • Loading branch information
peterwilsoncc committed Jan 30, 2025
1 parent 35edd54 commit 6e2a8d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-admin/site-editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function _get_site_editor_redirection_url() {
// Redirect to the site editor to the new URLs if needed.
$redirection = _get_site_editor_redirection_url();
if ( false !== $redirection ) {
wp_redirect( $redirection, 301 );
wp_safe_redirect( $redirection, 301 );
exit;
}

Expand Down

1 comment on commit 6e2a8d8

@dilipom13
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wp_safe_redirect( $redirection, 301 ); it's working properly.

Please sign in to comment.