Make WordPress Core

Ticket #36907: 36907.diff

File 36907.diff, 955 bytes (added by SergeyBiryukov, 3 years ago)
  • src/wp-includes/class-wp-query.php

     
    32603260                        if ( ! empty( $sticky_posts ) ) {
    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',
     3266                                                'nopaging'               => true,
    32683267                                                'suppress_filters'       => $q['suppress_filters'],
     3268                                                'cache_results'          => $q['cache_results'],
    32693269                                                'update_post_meta_cache' => $q['update_post_meta_cache'],
    32703270                                                'update_post_term_cache' => $q['update_post_term_cache'],
     3271                                                'lazy_load_term_meta'    => $q['lazy_load_term_meta'],
    32713272                                        )
    32723273                                );
    32733274