mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Don't use deprecated functions. props filosofo, fixes #13854.
git-svn-id: https://develop.svn.wordpress.org/trunk@15229 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1972,7 +1972,7 @@ class WP_Query {
|
||||
$whichcat .= " AND $wpdb->term_taxonomy.taxonomy = 'post_tag' ";
|
||||
$include_tags = "'" . implode("', '", $q['tag__in']) . "'";
|
||||
$whichcat .= " AND $wpdb->term_taxonomy.term_id IN ($include_tags) ";
|
||||
$reqtag = is_term( $q['tag__in'][0], 'post_tag' );
|
||||
$reqtag = term_exists( $q['tag__in'][0], 'post_tag' );
|
||||
if ( !empty($reqtag) )
|
||||
$q['tag_id'] = $reqtag['term_id'];
|
||||
}
|
||||
@@ -2000,7 +2000,7 @@ class WP_Query {
|
||||
if ( in_array($item, $tagin) && empty($q['cat']) ) continue; // We should already have what we need if categories aren't being used
|
||||
|
||||
if ( $item != 'category__and' ) {
|
||||
$reqtag = is_term( $q[$item][0], 'post_tag' );
|
||||
$reqtag = term_exists( $q[$item][0], 'post_tag' );
|
||||
if ( !empty($reqtag) )
|
||||
$q['tag_id'] = $reqtag['term_id'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user