Changeset 43571 for trunk/src/wp-admin/options-reading.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/options-reading.php
r42343 r43571 63 63 <input name="show_on_front" type="hidden" value="posts" /> 64 64 <table class="form-table"> 65 <?php66 if ( 'posts' != get_option( 'show_on_front' ) ) :67 update_option( 'show_on_front', 'posts' );65 <?php 66 if ( 'posts' != get_option( 'show_on_front' ) ) : 67 update_option( 'show_on_front', 'posts' ); 68 68 endif; 69 69 … … 72 72 update_option( 'show_on_front', 'posts' ); 73 73 } 74 ?>74 ?> 75 75 <table class="form-table"> 76 76 <tr> … … 91 91 <?php 92 92 printf( 93 __( 'Homepage: %s' ), wp_dropdown_pages( 93 __( 'Homepage: %s' ), 94 wp_dropdown_pages( 94 95 array( 95 96 'name' => 'page_on_front', … … 101 102 ) 102 103 ); 103 ?>104 ?> 104 105 </label></li> 105 106 <li><label for="page_for_posts"> 106 107 <?php 107 108 printf( 108 __( 'Posts page: %s' ), wp_dropdown_pages( 109 __( 'Posts page: %s' ), 110 wp_dropdown_pages( 109 111 array( 110 112 'name' => 'page_for_posts', … … 116 118 ) 117 119 ); 118 ?>120 ?> 119 121 </label></li> 120 122 </ul> 121 <?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' ) ) : ?> 122 124 <div id="front-page-warning" class="error inline"><p><?php _e( '<strong>Warning:</strong> these pages should not be the same!' ); ?></p></div> 123 125 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.