Ticket #40671: 40671-3.patch
| File 40671-3.patch, 528 bytes (added by , 9 years ago) |
|---|
-
src/wp-includes/class-wp-term.php
diff --git src/wp-includes/class-wp-term.php src/wp-includes/class-wp-term.php index 8eb87efbe0..f458271f71 100644
final class WP_Term { 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;