[wp-trac] Re: [WordPress Trac] #9815: Remove vestige what_to_show
WordPress Trac
wp-trac at lists.automattic.com
Wed May 13 20:39:30 GMT 2009
#9815: Remove vestige what_to_show
--------------------------+-------------------------------------------------
Reporter: filosofo | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8
Component: Query | Version: 2.8
Severity: normal | Keywords: has-patch what_to_show
--------------------------+-------------------------------------------------
Comment(by Denis-de-Bernardy):
I see it in 9 files:
{{{
DB:~/Sites/wp $ grep -R what_to_show *
wp-admin/.svn/text-base/admin.php.svn-base:$what_to_show =
get_option('what_to_show');
wp-admin/.svn/text-base/edit-pages.php.svn-base:$query = array('post_type'
=> 'page', 'orderby' => 'menu_order title', 'what_to_show' => 'posts',
wp-admin/admin.php:$what_to_show = get_option('what_to_show');
wp-admin/edit-pages.php:$query = array('post_type' => 'page', 'orderby' =>
'menu_order title', 'what_to_show' => 'posts',
wp-admin/includes/.svn/text-base/dashboard.php.svn-base:
'what_to_show' => 'posts',
wp-admin/includes/.svn/text-base/dashboard.php.svn-base:
'what_to_show' => 'posts',
wp-admin/includes/.svn/text-base/post.php.svn-base:
wp("post_type=post&what_to_show=posts$post_status_q&posts_per_page=$posts_per_page&order=$order&orderby=$orderby");
wp-admin/includes/.svn/text-base/schema.php.svn-base: 'what_to_show' =>
'posts',
wp-admin/includes/.svn/text-base/upgrade.php.svn-base: // The "paged"
option for what_to_show is no more.
wp-admin/includes/.svn/text-base/upgrade.php.svn-base: if
($wpdb->get_var("SELECT option_value FROM $wpdb->options WHERE option_name
= 'what_to_show'") == 'paged')
wp-admin/includes/.svn/text-base/upgrade.php.svn-base:
$wpdb->update( $wpdb->options, array('option_value' => 'posts'),
array('option_name' => 'what_to_show') );
wp-admin/includes/dashboard.php:
'what_to_show' => 'posts',
wp-admin/includes/dashboard.php: 'what_to_show' =>
'posts',
wp-admin/includes/post.php:
wp("post_type=post&what_to_show=posts$post_status_q&posts_per_page=$posts_per_page&order=$order&orderby=$orderby");
wp-admin/includes/schema.php: 'what_to_show' => 'posts',
wp-admin/includes/upgrade.php: // The "paged" option for what_to_show is
no more.
wp-admin/includes/upgrade.php: if ($wpdb->get_var("SELECT option_value
FROM $wpdb->options WHERE option_name = 'what_to_show'") == 'paged')
wp-admin/includes/upgrade.php: $wpdb->update( $wpdb->options,
array('option_value' => 'posts'), array('option_name' => 'what_to_show')
);
wp-app.php: wp('what_to_show=posts&posts_per_page=' . $count .
'&offset=' . ($count * ($page-1) . '&orderby=modified'));
wp-includes/.svn/text-base/classes.php.svn-base: 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');
wp-includes/.svn/text-base/default-widgets.php.svn-base: $r
= new WP_Query(array('showposts' => $number, 'what_to_show' => 'posts',
'nopaging' => 0, 'post_status' => 'publish', 'caller_get_posts' => 1));
wp-includes/classes.php: 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');
wp-includes/default-widgets.php: $r = new
WP_Query(array('showposts' => $number, 'what_to_show' => 'posts',
'nopaging' => 0, 'post_status' => 'publish', 'caller_get_posts' => 1));
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9815#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list