Changeset 11318
- Timestamp:
- 05/13/2009 10:28:56 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin.php
r11052 r11318 46 46 47 47 $posts_per_page = get_option('posts_per_page'); 48 $what_to_show = get_option('what_to_show');49 48 $date_format = get_option('date_format'); 50 49 $time_format = get_option('time_format'); -
trunk/wp-admin/edit-pages.php
r11312 r11318 83 83 ); 84 84 85 $query = array('post_type' => 'page', 'orderby' => 'menu_order title', 'what_to_show' => 'posts',85 $query = array('post_type' => 'page', 'orderby' => 'menu_order title', 86 86 'posts_per_page' => -1, 'posts_per_archive_page' => -1, 'order' => 'asc'); 87 87 -
trunk/wp-admin/includes/dashboard.php
r11204 r11318 368 368 $drafts_query = new WP_Query( array( 369 369 'post_type' => 'post', 370 'what_to_show' => 'posts',371 370 'post_status' => 'draft', 372 371 'author' => $GLOBALS['current_user']->ID, … … 435 434 $drafts_query = new WP_Query( array( 436 435 'post_type' => 'post', 437 'what_to_show' => 'posts',438 436 'post_status' => 'draft', 439 437 'author' => $GLOBALS['current_user']->ID, -
trunk/wp-admin/includes/post.php
r11296 r11318 824 824 $posts_per_page = apply_filters('edit_posts_per_page', $posts_per_page); 825 825 826 wp("post_type=post& what_to_show=posts$post_status_q&posts_per_page=$posts_per_page&order=$order&orderby=$orderby");826 wp("post_type=post&$post_status_q&posts_per_page=$posts_per_page&order=$order&orderby=$orderby"); 827 827 828 828 return array($post_stati, $avail_post_stati); -
trunk/wp-admin/includes/schema.php
r11264 r11318 213 213 'default_post_edit_rows' => 10, 214 214 'posts_per_page' => 10, 215 'what_to_show' => 'posts',216 215 /* translators: default date format, see http://php.net/date */ 217 216 'date_format' => __('F j, Y'), -
trunk/wp-admin/includes/upgrade.php
r11162 r11318 527 527 } 528 528 } 529 530 // The "paged" option for what_to_show is no more.531 if ($wpdb->get_var("SELECT option_value FROM $wpdb->options WHERE option_name = 'what_to_show'") == 'paged')532 $wpdb->update( $wpdb->options, array('option_value' => 'posts'), array('option_name' => 'what_to_show') );533 529 534 530 $active_plugins = __get_option('active_plugins'); -
trunk/wp-app.php
r11204 r11318 1089 1089 $count = get_option('posts_per_rss'); 1090 1090 1091 wp(' what_to_show=posts&posts_per_page=' . $count . '&offset=' . ($count * ($page-1) . '&orderby=modified'));1091 wp('posts_per_page=' . $count . '&offset=' . ($count * ($page-1) . '&orderby=modified')); 1092 1092 1093 1093 $post = $GLOBALS['post']; -
trunk/wp-includes/classes.php
r11239 r11318 37 37 * @var array 38 38 */ 39 var $private_query_vars = array('offset', 'posts_per_page', 'posts_per_archive_page', ' what_to_show', 'showposts', 'nopaging', 'post_type', 'post_status', 'category__in', 'category__not_in', 'category__and', 'tag__in', 'tag__not_in', 'tag__and', 'tag_slug__in', 'tag_slug__and', 'tag_id', 'post_mime_type', 'perm', 'comments_per_page');39 var $private_query_vars = array('offset', 'posts_per_page', 'posts_per_archive_page', 'showposts', 'nopaging', 'post_type', 'post_status', 'category__in', 'category__not_in', 'category__and', 'tag__in', 'tag__not_in', 'tag__and', 'tag_slug__in', 'tag_slug__and', 'tag_id', 'post_mime_type', 'perm', 'comments_per_page'); 40 40 41 41 /** -
trunk/wp-includes/default-widgets.php
r11293 r11318 556 556 $number = 15; 557 557 558 $r = new WP_Query(array('showposts' => $number, ' what_to_show' => 'posts', 'nopaging' => 0, 'post_status' => 'publish', 'caller_get_posts' => 1));558 $r = new WP_Query(array('showposts' => $number, 'nopaging' => 0, 'post_status' => 'publish', 'caller_get_posts' => 1)); 559 559 if ($r->have_posts()) : 560 560 ?>
Note: See TracChangeset
for help on using the changeset viewer.