Ticket #46850: 46850.diff
| File 46850.diff, 926 bytes (added by , 7 years ago) |
|---|
-
wp-includes/post.php
diff --git a/wp-includes/post.php b/wp-includes/post.php index eb69ac727b..082f862e4d 100644
a b function _reset_front_page_settings_for_post( $post_id ) { 2923 2923 update_option( 'page_on_front', 0 ); 2924 2924 } 2925 2925 if ( get_option( 'page_for_posts' ) == $post->ID ) { 2926 delete_option( 'page_for_posts' , 0);2926 delete_option( 'page_for_posts' ); 2927 2927 } 2928 2928 } 2929 2929 unstick_post( $post->ID );