Changeset 20972 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 06/01/2012 07:05:30 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r20436 r20972 503 503 foreach ( (array) $taxonomies as $taxonomy ) { 504 504 if ( ! taxonomy_exists( $taxonomy ) ) 505 return new WP_Error( 'invalid_taxonomy', __( 'Invalid Taxonomy' ) );505 return new WP_Error( 'invalid_taxonomy', __( 'Invalid taxonomy' ) ); 506 506 } 507 507 … … 856 856 857 857 if ( ! taxonomy_exists($taxonomy) ) { 858 $error = new WP_Error('invalid_taxonomy', __('Invalid Taxonomy'));858 $error = new WP_Error('invalid_taxonomy', __('Invalid taxonomy')); 859 859 return $error; 860 860 } … … 985 985 function get_term_children( $term_id, $taxonomy ) { 986 986 if ( ! taxonomy_exists($taxonomy) ) 987 return new WP_Error('invalid_taxonomy', __('Invalid Taxonomy'));987 return new WP_Error('invalid_taxonomy', __('Invalid taxonomy')); 988 988 989 989 $term_id = intval( $term_id ); … … 1175 1175 foreach ( $taxonomies as $taxonomy ) { 1176 1176 if ( ! taxonomy_exists($taxonomy) ) { 1177 $error = new WP_Error('invalid_taxonomy', __('Invalid Taxonomy'));1177 $error = new WP_Error('invalid_taxonomy', __('Invalid taxonomy')); 1178 1178 return $error; 1179 1179 } … … 1876 1876 foreach ( (array) $taxonomies as $taxonomy ) { 1877 1877 if ( ! taxonomy_exists($taxonomy) ) 1878 return new WP_Error('invalid_taxonomy', __('Invalid Taxonomy'));1878 return new WP_Error('invalid_taxonomy', __('Invalid taxonomy')); 1879 1879 } 1880 1880 … … 2147 2147 2148 2148 if ( ! taxonomy_exists($taxonomy) ) 2149 return new WP_Error('invalid_taxonomy', __('Invalid Taxonomy'));2149 return new WP_Error('invalid_taxonomy', __('Invalid taxonomy')); 2150 2150 2151 2151 if ( !is_array($terms) )
Note: See TracChangeset
for help on using the changeset viewer.