Skip to content

Commit

Permalink
Condense comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alecgeatches committed Feb 21, 2024
1 parent 5c36c87 commit 1ea7a1b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions preview/preview.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ function redirect_to_preview() {
wp_safe_redirect( $preview_url, 302 );
exit;
} else {
// If the URL was modified by the above filter, use wp_redirect to allow previewing on another domain.

// Allow cross-domain redirects if the filter is used.
// phpcs:ignore WordPress.Security.SafeRedirect.wp_redirect_wp_redirect
// phpcs:ignore WordPress.Security.SafeRedirect.wp_redirect_wp_redirect -- Allow cross-domain redirects if the filter is used.
wp_redirect( $preview_url, 302 );
exit;
}
Expand Down

0 comments on commit 1ea7a1b

Please sign in to comment.