diff --git a/src/wp-includes/query.php b/src/wp-includes/query.php index 377e5a02ca..7df4a8601e 100644 --- a/src/wp-includes/query.php +++ b/src/wp-includes/query.php @@ -4854,10 +4854,6 @@ class WP_Query { $posts[] = $post; } } - $_p = array(); - foreach ( $posts as $post ) { - $_p[] = $post->ID; - } if ( ! empty( $posts ) ) { // Fetch cached term_ids for each post. Keyed by term_id for faster lookup.