Ticket #21760: 21760.11.patch
File 21760.11.patch, 560 bytes (added by , 4 years ago) |
---|
-
wp-includes/taxonomy.php
831 831 function get_term_by( $field, $value, $taxonomy = '', $output = OBJECT, $filter = 'raw' ) { 832 832 833 833 // 'term_taxonomy_id' lookups don't require taxonomy checks. 834 if ( 'term_taxonomy_id' !== $field && ! taxonomy_exists( $taxonomy ) ) {834 if ( 'term_taxonomy_id' !== $field && ! taxonomy_exists( $taxonomy ) || empty( $value ) ) { 835 835 return false; 836 836 } 837 837