Skip to content

Commit

Permalink
Posts, Post Types: Revert unintended change from [45742].
Browse files Browse the repository at this point in the history
See #46503.

git-svn-id: https://develop.svn.wordpress.org/trunk@45744 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Aug 4, 2019
1 parent b536f1d commit 3705fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-includes/post.php
Original file line number Diff line number Diff line change
Expand Up @@ -3000,7 +3000,7 @@ function _reset_front_page_settings_for_post( $post_id ) {
update_option( 'page_on_front', 0 );
}
if ( get_option( 'page_for_posts' ) == $post->ID ) {
delete_option( 'page_for_posts' );
delete_option( 'page_for_posts', 0 );
}
}
unstick_post( $post->ID );
Expand Down

0 comments on commit 3705fdd

Please sign in to comment.