mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Introduce the wp_filter_object_list() helper, with an $operator arg. Fixes an intersection bug in get_post_types() and get_taxonomies(). Also switches $operator default from 'or' to 'and' for get_post_stati(). props scribu, fixes #12966.
git-svn-id: https://develop.svn.wordpress.org/trunk@14108 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2255,7 +2255,7 @@ class WP_Query {
|
||||
|
||||
if ( is_admin() ) {
|
||||
// Add protected states that should show in the admin all list.
|
||||
$admin_all_states = get_post_stati( array('protected' => true, 'show_in_admin_all_list' => true), 'names', 'and' );
|
||||
$admin_all_states = get_post_stati( array('protected' => true, 'show_in_admin_all_list' => true) );
|
||||
foreach ( (array) $admin_all_states as $state )
|
||||
$where .= " OR $wpdb->posts.post_status = '$state'";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user