Make WordPress Core

Ticket #36907: #36907.patch

File #36907.patch, 979 bytes (added by rehanali, 3 years ago)

Added patch

  • class-wp-query.php

     
    32453245                        if ( ! empty( $sticky_posts ) ) {
    32463246                                $stickies = get_posts(
    32473247                                        array(
    3248                                                 'post__in'    => $sticky_posts,
    3249                                                 'post_type'   => $post_type,
    3250                                                 'post_status' => 'publish',
    3251                                                 'nopaging'    => true,
     3248                                                'cache_results'          => $q['cache_results'],
     3249                        'post__in'               => $sticky_posts,
     3250                        'post_type'              => $post_type,
     3251                        'post_status'            => 'publish',
     3252                        'posts_per_page'         => count( $sticky_posts ),
     3253                        'suppress_filters'       => $q['suppress_filters'],
     3254                                                'update_post_meta_cache' => $q['update_post_meta_cache'],
     3255                                                'update_post_term_cache' => $q['update_post_term_cache'],
    32523256                                        )
    32533257                                );
    32543258