Changeset 59572
- Timestamp:
- 01/02/2025 06:25:59 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r59567 r59572 3860 3860 * adjust the corresponding options. 3861 3861 */ 3862 if ( get_option( 'page_on_front' )== $post->ID ) {3862 if ( (int) get_option( 'page_on_front' ) === $post->ID ) { 3863 3863 update_option( 'show_on_front', 'posts' ); 3864 3864 update_option( 'page_on_front', 0 ); 3865 3865 } 3866 if ( get_option( 'page_for_posts' )== $post->ID ) {3866 if ( (int) get_option( 'page_for_posts' ) === $post->ID ) { 3867 3867 update_option( 'page_for_posts', 0 ); 3868 3868 }
Note: See TracChangeset
for help on using the changeset viewer.