Changeset 40293 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 03/16/2017 02:03:53 AM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/taxonomy.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r40292 r40293 836 836 } 837 837 838 // No need to perform a query for empty 'slug' or 'name'. 839 if ( 'slug' === $field || 'name' === $field ) { 840 $value = (string) $value; 841 842 if ( 0 === strlen( $value ) ) { 843 return false; 844 } 845 } 846 838 847 if ( 'id' === $field || 'term_id' === $field ) { 839 848 $term = get_term( (int) $value, $taxonomy, $output, $filter );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)