Posts, Post Types: Revert unintended change from [45742].

See #46503.
Built from https://develop.svn.wordpress.org/trunk@45744


git-svn-id: http://core.svn.wordpress.org/trunk@45555 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov
2019-08-04 14:44:55 +00:00
parent e8cd892ba4
commit 545157d30d
2 changed files with 2 additions and 2 deletions

View File

@@ -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 );