mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-30 18:24:31 +00:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user