Skip to content

Commit beb4349

Browse files
add westons feedback
Co-authored-by: Weston Ruter <westonruter@gmail.com>
1 parent 47d48d6 commit beb4349

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4044,7 +4044,7 @@ function _reset_privacy_policy_page_for_post( int $post_id ): void {
40444044
return;
40454045
}
40464046

4047-
if ( 'page' === $post->post_type && ( (int) get_option( 'wp_page_for_privacy_policy' ) === (int) $post_id ) ) {
4047+
if ( 'page' === get_post_type( $post_id ) && ( (int) get_option( 'wp_page_for_privacy_policy' ) === $post_id ) ) {
40484048
update_option( 'wp_page_for_privacy_policy', 0 );
40494049
}
40504050
}

0 commit comments

Comments
 (0)