WordPress.org

Make WordPress Core

Changeset 11318


Ignore:
Timestamp:
05/13/09 22:28:56 (6 years ago)
Author:
ryan
Message:

Remove vestiges of what_to_show. Props filosofo. fixes #9815

Location:
trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin.php

    r11052 r11318  
    4646 
    4747$posts_per_page = get_option('posts_per_page'); 
    48 $what_to_show = get_option('what_to_show'); 
    4948$date_format = get_option('date_format'); 
    5049$time_format = get_option('time_format'); 
  • trunk/wp-admin/edit-pages.php

    r11312 r11318  
    8383    ); 
    8484 
    85 $query = array('post_type' => 'page', 'orderby' => 'menu_order title', 'what_to_show' => 'posts', 
     85$query = array('post_type' => 'page', 'orderby' => 'menu_order title', 
    8686    'posts_per_page' => -1, 'posts_per_archive_page' => -1, 'order' => 'asc'); 
    8787 
  • trunk/wp-admin/includes/dashboard.php

    r11204 r11318  
    368368            $drafts_query = new WP_Query( array( 
    369369                'post_type' => 'post', 
    370                 'what_to_show' => 'posts', 
    371370                'post_status' => 'draft', 
    372371                'author' => $GLOBALS['current_user']->ID, 
     
    435434        $drafts_query = new WP_Query( array( 
    436435            'post_type' => 'post', 
    437             'what_to_show' => 'posts', 
    438436            'post_status' => 'draft', 
    439437            'author' => $GLOBALS['current_user']->ID, 
  • trunk/wp-admin/includes/post.php

    r11296 r11318  
    824824    $posts_per_page = apply_filters('edit_posts_per_page', $posts_per_page); 
    825825 
    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"); 
    827827 
    828828    return array($post_stati, $avail_post_stati); 
  • trunk/wp-admin/includes/schema.php

    r11264 r11318  
    213213    'default_post_edit_rows' => 10, 
    214214    'posts_per_page' => 10, 
    215     'what_to_show' => 'posts', 
    216215    /* translators: default date format, see http://php.net/date */ 
    217216    'date_format' => __('F j, Y'), 
  • trunk/wp-admin/includes/upgrade.php

    r11162 r11318  
    527527        } 
    528528    } 
    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') ); 
    533529 
    534530    $active_plugins = __get_option('active_plugins'); 
  • trunk/wp-app.php

    r11204 r11318  
    10891089        $count = get_option('posts_per_rss'); 
    10901090 
    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')); 
    10921092 
    10931093        $post = $GLOBALS['post']; 
  • trunk/wp-includes/classes.php

    r11239 r11318  
    3737     * @var array 
    3838     */ 
    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'); 
    4040 
    4141    /** 
  • trunk/wp-includes/default-widgets.php

    r11293 r11318  
    556556            $number = 15; 
    557557 
    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)); 
    559559        if ($r->have_posts()) : 
    560560?> 
Note: See TracChangeset for help on using the changeset viewer.