Make WordPress Core


Ignore:
Timestamp:
03/23/2022 04:26:01 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-query.php

    r52982 r52985  
    32613261                $stickies = get_posts(
    32623262                    array(
    3263                         'cache_results'          => $q['cache_results'],
    3264                         'lazy_load_term_meta'    => $q['lazy_load_term_meta'],
    32653263                        'post__in'               => $sticky_posts,
    32663264                        'post_type'              => $post_type,
    32673265                        'post_status'            => 'publish',
    32683266                        'suppress_filters'       => $q['suppress_filters'],
     3267                        'cache_results'          => $q['cache_results'],
    32693268                        'update_post_meta_cache' => $q['update_post_meta_cache'],
    32703269                        'update_post_term_cache' => $q['update_post_term_cache'],
     3270                        'lazy_load_term_meta'    => $q['lazy_load_term_meta'],
    32713271                    )
    32723272                );
Note: See TracChangeset for help on using the changeset viewer.