WordPress.org

Make WordPress Core

Ticket #27532: 27532.2.patch

File 27532.2.patch, 585 bytes (added by SergeyBiryukov, 7 years ago)
  • src/wp-admin/includes/post.php

     
    931931        if ( ! empty( $q['show_sticky'] ) )
    932932                $query['post__in'] = (array) get_option( 'sticky_posts' );
    933933
    934         wp( $query );
     934        query_posts( $query );
    935935
    936936        return $avail_post_stati;
    937937}
     
    995995        if ( isset($q['detached']) )
    996996                $q['post_parent'] = 0;
    997997
    998         wp( $q );
     998        query_posts( $q );
    999999
    10001000        return array($post_mime_types, $avail_post_mime_types);
    10011001}