Make WordPress Core


Ignore:
Timestamp:
06/01/2012 07:05:30 PM (13 years ago)
Author:
ryan
Message:

Consolodate some strings. Props pavelevap. fixes #20809

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/taxonomy.php

    r20436 r20972  
    503503    foreach ( (array) $taxonomies as $taxonomy ) {
    504504        if ( ! taxonomy_exists( $taxonomy ) )
    505             return new WP_Error( 'invalid_taxonomy', __( 'Invalid Taxonomy' ) );
     505            return new WP_Error( 'invalid_taxonomy', __( 'Invalid taxonomy' ) );
    506506    }
    507507
     
    856856
    857857    if ( ! taxonomy_exists($taxonomy) ) {
    858         $error = new WP_Error('invalid_taxonomy', __('Invalid Taxonomy'));
     858        $error = new WP_Error('invalid_taxonomy', __('Invalid taxonomy'));
    859859        return $error;
    860860    }
     
    985985function get_term_children( $term_id, $taxonomy ) {
    986986    if ( ! taxonomy_exists($taxonomy) )
    987         return new WP_Error('invalid_taxonomy', __('Invalid Taxonomy'));
     987        return new WP_Error('invalid_taxonomy', __('Invalid taxonomy'));
    988988
    989989    $term_id = intval( $term_id );
     
    11751175    foreach ( $taxonomies as $taxonomy ) {
    11761176        if ( ! taxonomy_exists($taxonomy) ) {
    1177             $error = new WP_Error('invalid_taxonomy', __('Invalid Taxonomy'));
     1177            $error = new WP_Error('invalid_taxonomy', __('Invalid taxonomy'));
    11781178            return $error;
    11791179        }
     
    18761876    foreach ( (array) $taxonomies as $taxonomy ) {
    18771877        if ( ! taxonomy_exists($taxonomy) )
    1878             return new WP_Error('invalid_taxonomy', __('Invalid Taxonomy'));
     1878            return new WP_Error('invalid_taxonomy', __('Invalid taxonomy'));
    18791879    }
    18801880
     
    21472147
    21482148    if ( ! taxonomy_exists($taxonomy) )
    2149         return new WP_Error('invalid_taxonomy', __('Invalid Taxonomy'));
     2149        return new WP_Error('invalid_taxonomy', __('Invalid taxonomy'));
    21502150
    21512151    if ( !is_array($terms) )
Note: See TracChangeset for help on using the changeset viewer.