Make WordPress Core

Ticket #12047: 12047.002.diff

File 12047.002.diff, 1.4 KB (added by aaroncampbell, 15 years ago)

Just removes the !empty($qvpaged?) check

  • wp-includes/query.php

     
    14811481                                        empty($this->query) ||
    14821482                                        !empty($qv['preview']) ||
    14831483                                        !empty($qv['cpage']) ||
    1484                                         !empty($qv['page']) ||
    1485                                         !empty($qv['paged'])
     1484                                        !empty($qv['page'])
    14861485                                ) ) {
    14871486                        $this->is_page = true;
    14881487                        $this->is_home = false;
     
    17261725                                        // Non-hierarchical post_types & parent-level-hierarchical post_types can directly use 'name'
    17271726                                        $q['name'] = $q[ $ptype_obj->query_var ];
    17281727                                } else {
    1729                                         // Hierarchical post_types will operate through the 
     1728                                        // Hierarchical post_types will operate through the
    17301729                                        $q['pagename'] = $q[ $ptype_obj->query_var ];
    17311730                                        $q['name'] = '';
    17321731                                }
     
    24892488                                $stickies = $wpdb->get_results( "SELECT * FROM $wpdb->posts WHERE $wpdb->posts.ID IN ($stickies__in) $stickies_where" );
    24902489                                foreach ( $stickies as $sticky_post ) {
    24912490                                        // Ignore sticky posts the current user cannot read or are not published.
    2492                                         if ( 'publish' != $sticky_post->post_status ) 
     2491                                        if ( 'publish' != $sticky_post->post_status )
    24932492                                                continue;
    24942493                                        array_splice($this->posts, $sticky_offset, 0, array($sticky_post));
    24952494                                        $sticky_offset++;
     
    28542853
    28552854        return true;
    28562855}
    2857 ?>
    2858  No newline at end of file
     2856?>