Make WordPress Core


Ignore:
Timestamp:
10/13/2007 06:53:28 PM (17 years ago)
Author:
ryan
Message:

Eliminate extra query.

File:
1 edited

Legend:

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

    r6224 r6245  
    999999            } else {
    10001000                $q['tag'] = sanitize_term_field('slug', $q['tag'], 0, 'post_tag', 'db');
    1001                 $reqtag = is_term( $q['tag'], 'post_tag' );
    1002                 if ( !empty($reqtag) )
    1003                     $reqtag = $reqtag['term_id'];
    1004                 else
    1005                     $reqtag = 0;
    1006 
    1007                 $q['tag_id'] = $reqtag;
    1008                 $q['tag__in'][] = $reqtag;
     1001                $q['tag_slug__in'][] = $q['tag'];
    10091002            }
    10101003        }
Note: See TracChangeset for help on using the changeset viewer.