Changeset 45752
- Timestamp:
- 08/05/2019 12:51:33 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/options-reading.php
r45674 r45752 69 69 70 70 else : 71 if ( 'page' == get_option( 'show_on_front' ) && ! get_option( 'page_on_front' ) && ! get_option( 'page_for_posts' ) ) {71 if ( 'page' === get_option( 'show_on_front' ) && ! get_option( 'page_on_front' ) && ! get_option( 'page_for_posts' ) ) { 72 72 update_option( 'show_on_front', 'posts' ); 73 73 } … … 121 121 </label></li> 122 122 </ul> 123 <?php if ( 'page' == get_option( 'show_on_front' ) && get_option( 'page_for_posts' )== get_option( 'page_on_front' ) ) : ?>123 <?php if ( 'page' === get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) === get_option( 'page_on_front' ) ) : ?> 124 124 <div id="front-page-warning" class="error inline"><p><?php _e( '<strong>Warning:</strong> these pages should not be the same!' ); ?></p></div> 125 125 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.