Changes in trunk/wp-admin/options-reading.php [15000:15227]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-reading.php
r15000 r15227 16 16 $parent_file = 'options-general.php'; 17 17 18 add_contextual_help($current_screen, 18 add_contextual_help($current_screen, 19 19 '<p>' . __('This screen contains the settings that affect the display of your content.') . '</p>' . 20 '<p>' . __('You can choose what’s displayed on the front page of your site. It can be posts in reverse chronological order (classic blog), or a fixed/static page. To set a static home page, you first need to create two <a href="post-new.php?post_type=page">Pages</a>. One will become the front page, and the other will be where your posts are displayed.') . '</p>' .20 '<p>' . sprintf(__('You can choose what’s displayed on the front page of your site. It can be posts in reverse chronological order (classic blog), or a fixed/static page. To set a static home page, you first need to create two <a href="%s">Pages</a>. One will become the front page, and the other will be where your posts are displayed.'), 'post-new.php?post_type=page') . '</p>' . 21 21 '<p>' . __('You can also control the display of your content in RSS feeds, including the maximum numbers of posts to display, whether to show full text or a summary, and the character set encoding.') . '</p>' . 22 22 '<p>' . __('You must click the Save Changes button at the bottom of the screen for new settings to take effect.') . '</p>' . 23 23 '<p><strong>' . __('For more information:') . '</strong></p>' . 24 '<p>' . __('<a href="http://codex.wordpress.org/Settings_Reading_SubPanel" >Reading Settings Documentation</a>') . '</p>' .25 '<p>' . __('<a href="http://wordpress.org/support/" >Support Forums</a>') . '</p>'24 '<p>' . __('<a href="http://codex.wordpress.org/Settings_Reading_SubPanel" target="_blank">Reading Settings Documentation</a>') . '</p>' . 25 '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 26 26 ); 27 27 … … 39 39 <input name="show_on_front" type="hidden" value="posts" /> 40 40 <table class="form-table"> 41 <?php else : ?> 41 <?php else : 42 if ( 'page' == get_option( 'show_on_front' ) && ! get_option( 'page_on_front' ) && ! get_option( 'page_for_posts' ) ) 43 update_option( 'show_on_front', 'posts' ); 44 ?> 42 45 <table class="form-table"> 43 46 <tr valign="top"> … … 55 58 </p> 56 59 <ul> 57 <li><label for="page_on_front"><?php printf( __( 'Front page: %s' ), wp_dropdown_pages( array( 'name' => 'page_on_front', 'echo' => 0, 'show_option_none' => __( '— Select —' ), ' selected' => get_option( 'page_on_front' ) ) ) ); ?></label></li>58 <li><label for="page_for_posts"><?php printf( __( 'Posts page: %s' ), wp_dropdown_pages( array( 'name' => 'page_for_posts', 'echo' => 0, 'show_option_none' => __( '— Select —' ), ' selected' => get_option( 'page_for_posts' ) ) ) ); ?></label></li>60 <li><label for="page_on_front"><?php printf( __( 'Front page: %s' ), wp_dropdown_pages( array( 'name' => 'page_on_front', 'echo' => 0, 'show_option_none' => __( '— Select —' ), 'option_none_value' => '0', 'selected' => get_option( 'page_on_front' ) ) ) ); ?></label></li> 61 <li><label for="page_for_posts"><?php printf( __( 'Posts page: %s' ), wp_dropdown_pages( array( 'name' => 'page_for_posts', 'echo' => 0, 'show_option_none' => __( '— Select —' ), 'option_none_value' => '0', 'selected' => get_option( 'page_for_posts' ) ) ) ); ?></label></li> 59 62 </ul> 60 63 <?php if ( 'page' == get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) == get_option( 'page_on_front' ) ) : ?>
Note: See TracChangeset
for help on using the changeset viewer.