Changeset 15227
- Timestamp:
- 06/11/2010 05:04:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/schema.php
r15202 r15227 315 315 'embed_size_w' => '', 316 316 'embed_size_h' => 600, 317 318 // 3.0 319 'page_for_posts' => 0, 320 'page_on_front' => 0, 317 321 ); 318 322 -
trunk/wp-admin/options-reading.php
r15132 r15227 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' ) ) : ?> -
trunk/wp-includes/formatting.php
r14996 r15227 2403 2403 case 'comment_max_links': 2404 2404 case 'page_on_front': 2405 case 'page_for_posts': 2405 2406 case 'rss_excerpt_length': 2406 2407 case 'default_category': -
trunk/wp-includes/general-template.php
r15224 r15227 586 586 if ( is_single() || ( is_home() && !is_front_page() ) || ( is_page() && !is_front_page() ) ) { 587 587 $post = $wp_query->get_queried_object(); 588 $title = apply_filters( 'single_post_title', empty( $post->post_title ) ? '' :$post->post_title );588 $title = apply_filters( 'single_post_title', $post->post_title ); 589 589 } 590 590
Note: See TracChangeset
for help on using the changeset viewer.