Ticket #40671: 40671.patch
| File 40671.patch, 784 bytes (added by , 9 years ago) |
|---|
-
wp-includes/class-wp-term.php
142 142 143 143 // If a taxonomy was specified, find a match. 144 144 if ( $taxonomy ) { 145 146 // Clear out the cached term since it does not have the 147 // matching taxonomy. 148 $_term = false; 149 145 150 foreach ( $terms as $match ) { 146 151 if ( $taxonomy === $match->taxonomy ) { 147 152 $_term = $match; … … 182 187 $_term = sanitize_term( $_term, $_term->taxonomy, 'raw' ); 183 188 184 189 // Don't cache terms that are shared between taxonomies. 190 var_dump(count($terms)); 185 191 if ( 1 === count( $terms ) ) { 186 192 wp_cache_add( $term_id, $_term, 'terms' ); 187 193 }