Ticket #2515: front_page.4.diff
File front_page.4.diff, 1.6 KB (added by , 19 years ago) |
---|
-
wp-admin/options-reading.php
29 29 </label> 30 30 <ul> 31 31 <li><?php printf(__('Show this page on the front page: %s'), wp_dropdown_pages("name=page_on_front&echo=0&selected=" . get_option('page_on_front'))); ?></li> 32 <li><?php printf(__('Show the latest posts on this page: %s'), wp_dropdown_pages("name=page_for_posts&echo=0&s elected=" . get_option('page_for_posts'))); ?></li>32 <li><?php printf(__('Show the latest posts on this page: %s'), wp_dropdown_pages("name=page_for_posts&echo=0&show_blank=0&selected=" . get_option('page_for_posts'))); ?></li> 33 33 </ul> 34 34 <?php if ( 'page' == get_option('show_on_front') && get_option('page_for_posts') == get_option('page_on_front') ) : ?> 35 35 <div id="front-page-warning" class="updated fade-ff0000"> -
wp-includes/template-functions-post.php
383 383 parse_str($args, $r); 384 384 385 385 $defaults = array('depth' => 0, 'child_of' => 0, 'selected' => 0, 'echo' => 1, 386 'name' => 'page_id' );386 'name' => 'page_id', 'show_blank' => 0); 387 387 $r = array_merge($defaults, $r); 388 388 extract($r); 389 389 … … 392 392 393 393 if ( ! empty($pages) ) { 394 394 $output = "<select name='$name'>\n"; 395 if($show_blank != 0) 396 $output .= "<option value=\"\"> - Select - </option>\n"; 395 397 $output .= walk_page_dropdown_tree($pages, $depth, $r); 396 398 $output .= "</select>\n"; 397 399 }