diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index b264e4ca3f..2cbc6c3278 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -1050,8 +1050,8 @@ function inline_edit_row( $type ) { $dropdown_args = array('selected' => $post->post_parent, 'name' => 'post_parent', 'show_option_none' => __('Main Page (no parent)'), 'option_none_value' => 0); if ( $bulk ) $dropdown_args['show_option_no_change'] = __('- No Change -'); + wp_dropdown_pages($dropdown_args); ?> - diff --git a/wp-includes/classes.php b/wp-includes/classes.php index 960e9b2ac8..9ae778f8ee 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -1233,7 +1233,7 @@ class Walker_PageDropdown extends Walker { function start_el(&$output, $page, $depth, $args) { $pad = str_repeat(' ', $depth * 3); - $output .= "\t"; + $output .= "\t"; if ( $show_option_none ) - $output .= "\t\n"; + $output .= "\t\n"; $output .= walk_page_dropdown_tree($pages, $depth, $r); $output .= "\n"; } diff --git a/wp-includes/post.php b/wp-includes/post.php index ef1bd2dcb3..8e1451cbda 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -2065,7 +2065,7 @@ function &get_pages($args = '') { $r = wp_parse_args( $args, $defaults ); extract( $r, EXTR_SKIP ); - $key = md5( serialize( $r ) ); + $key = md5( serialize( compact(array_keys($defaults)) ) ); if ( $cache = wp_cache_get( 'get_pages', 'posts' ) ) { if ( isset( $cache[ $key ] ) ) { $pages = apply_filters('get_pages', $cache[ $key ], $r );