Make wp_edit_posts_query() more post_type aware. Use array calling style. see #9674

git-svn-id: https://develop.svn.wordpress.org/trunk@12706 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2010-01-12 15:23:10 +00:00
parent 156b5d27c3
commit 0e4bc929a1
2 changed files with 10 additions and 10 deletions

View File

@@ -24,6 +24,7 @@ if ( isset($_GET['post_type']) && in_array( $_GET['post_type'], get_post_types(
$post_type = $_GET['post_type'];
else
$post_type = 'post';
$_GET['post_type'] = $post_type;
$post_type_object = get_post_type_object($post_type);