Ticket #45163: get_term_by_ID.patch
| File get_term_by_ID.patch, 650 bytes (added by , 8 years ago) |
|---|
-
wp-includes/taxonomy.php
919 919 * or `$term` was not found. 920 920 */ 921 921 function get_term_by( $field, $value, $taxonomy = '', $output = OBJECT, $filter = 'raw' ) { 922 // 'ID' is an alias of 'id'. 923 if ( 'ID' === $field ) { 924 $field = 'id'; 925 } 922 926 923 927 // 'term_taxonomy_id' lookups don't require taxonomy checks. 924 928 if ( 'term_taxonomy_id' !== $field && ! taxonomy_exists( $taxonomy ) ) {