mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 10:44:26 +00:00
Merge Category/Tag URL creation/rewriting into general Taxonomy system. Removes the legacy handling for these url's. See #12659
git-svn-id: https://develop.svn.wordpress.org/trunk@15825 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1457,13 +1457,15 @@ class WP_Query extends WP_Object_Query {
|
||||
'operator' => 'IN'
|
||||
);
|
||||
|
||||
if ( $t->rewrite['hierarchical'] ) {
|
||||
$q[$t->query_var] = basename($q[$t->query_var]);
|
||||
if ( $taxonomy == $q['taxonomy'] )
|
||||
$q['term'] = basename($q['term']);
|
||||
}
|
||||
|
||||
$term = $q[$t->query_var];
|
||||
|
||||
if ( $t->rewrite['hierarchical'] ) {
|
||||
$tax_query[] = array_merge( $tax_query_defaults, array(
|
||||
'terms' => array( basename( $term ) )
|
||||
) );
|
||||
} elseif ( strpos($term, '+') !== false ) {
|
||||
if ( strpos($term, '+') !== false ) {
|
||||
$terms = preg_split( '/[+\s]+/', $term );
|
||||
foreach ( $terms as $term ) {
|
||||
$tax_query[] = array_merge( $tax_query_defaults, array(
|
||||
|
||||
Reference in New Issue
Block a user