Use 307 for scheduled chapter redirect

This commit is contained in:
Tetrakern 2025-01-13 00:55:40 +01:00
parent 26047ab14d
commit c6c64edc5d

View File

@ -1736,9 +1736,9 @@ function fictioneer_redirect_scheduled_chapter_404() {
$story_id = fictioneer_get_chapter_story_id( $post_id ); $story_id = fictioneer_get_chapter_story_id( $post_id );
if ( $story_id ) { if ( $story_id ) {
wp_safe_redirect( get_permalink( $story_id ) ); wp_safe_redirect( get_permalink( $story_id ), 307 );
} else { } else {
wp_safe_redirect( home_url() ); wp_safe_redirect( home_url(), 307 );
} }
exit; exit;