mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Tests: Use a more descriptive name for the sticky posts test that verifies the parameters from the main query.
Reorder the parameters of the `get_posts()` call for consistency with similar calls elsewhere. Follow-up to [52982]. See #36907. git-svn-id: https://develop.svn.wordpress.org/trunk@52985 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3260,14 +3260,14 @@ class WP_Query {
|
||||
if ( ! empty( $sticky_posts ) ) {
|
||||
$stickies = get_posts(
|
||||
array(
|
||||
'cache_results' => $q['cache_results'],
|
||||
'lazy_load_term_meta' => $q['lazy_load_term_meta'],
|
||||
'post__in' => $sticky_posts,
|
||||
'post_type' => $post_type,
|
||||
'post_status' => 'publish',
|
||||
'suppress_filters' => $q['suppress_filters'],
|
||||
'cache_results' => $q['cache_results'],
|
||||
'update_post_meta_cache' => $q['update_post_meta_cache'],
|
||||
'update_post_term_cache' => $q['update_post_term_cache'],
|
||||
'lazy_load_term_meta' => $q['lazy_load_term_meta'],
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user