mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Remove vestiges of what_to_show. Props filosofo. fixes #9815
git-svn-id: https://develop.svn.wordpress.org/trunk@11318 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -367,7 +367,6 @@ function wp_dashboard_quick_press() {
|
||||
printf( '<div class="message"><p>' . __( 'Draft Saved. <a href="%s">Preview post</a> | <a href="%s">Edit post</a>' ) . '</p></div>', clean_url( add_query_arg( 'preview', 1, $view ) ), $edit );
|
||||
$drafts_query = new WP_Query( array(
|
||||
'post_type' => 'post',
|
||||
'what_to_show' => 'posts',
|
||||
'post_status' => 'draft',
|
||||
'author' => $GLOBALS['current_user']->ID,
|
||||
'posts_per_page' => 1,
|
||||
@@ -434,7 +433,6 @@ function wp_dashboard_recent_drafts( $drafts = false ) {
|
||||
if ( !$drafts ) {
|
||||
$drafts_query = new WP_Query( array(
|
||||
'post_type' => 'post',
|
||||
'what_to_show' => 'posts',
|
||||
'post_status' => 'draft',
|
||||
'author' => $GLOBALS['current_user']->ID,
|
||||
'posts_per_page' => 5,
|
||||
|
||||
@@ -823,7 +823,7 @@ function wp_edit_posts_query( $q = false ) {
|
||||
$posts_per_page = 15;
|
||||
$posts_per_page = apply_filters('edit_posts_per_page', $posts_per_page);
|
||||
|
||||
wp("post_type=post&what_to_show=posts$post_status_q&posts_per_page=$posts_per_page&order=$order&orderby=$orderby");
|
||||
wp("post_type=post&$post_status_q&posts_per_page=$posts_per_page&order=$order&orderby=$orderby");
|
||||
|
||||
return array($post_stati, $avail_post_stati);
|
||||
}
|
||||
|
||||
@@ -212,7 +212,6 @@ function populate_options() {
|
||||
'default_pingback_flag' => 1,
|
||||
'default_post_edit_rows' => 10,
|
||||
'posts_per_page' => 10,
|
||||
'what_to_show' => 'posts',
|
||||
/* translators: default date format, see http://php.net/date */
|
||||
'date_format' => __('F j, Y'),
|
||||
/* translators: default time format, see http://php.net/date */
|
||||
|
||||
@@ -527,10 +527,6 @@ function upgrade_130() {
|
||||
}
|
||||
}
|
||||
|
||||
// The "paged" option for what_to_show is no more.
|
||||
if ($wpdb->get_var("SELECT option_value FROM $wpdb->options WHERE option_name = 'what_to_show'") == 'paged')
|
||||
$wpdb->update( $wpdb->options, array('option_value' => 'posts'), array('option_name' => 'what_to_show') );
|
||||
|
||||
$active_plugins = __get_option('active_plugins');
|
||||
|
||||
// If plugins are not stored in an array, they're stored in the old
|
||||
|
||||
Reference in New Issue
Block a user