Make WordPress Core

Changeset 38162


Ignore:
Timestamp:
07/27/2016 10:42:23 AM (8 years ago)
Author:
SergeyBiryukov
Message:

I18N: After [38077], merge two duplicate strings in wp_insert_term() and wp_update_term().

Props ramiy.
See #18218.

File:
1 edited

Legend:

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

    r38125 r38162  
    22422242        return $term;
    22432243    }
    2244     if ( is_int($term) && 0 == $term ) {
     2244    if ( is_int( $term ) && 0 == $term ) {
    22452245        return new WP_Error( 'invalid_term_id', __( 'Invalid term ID.' ) );
    22462246    }
    2247     if ( '' == trim($term) ) {
     2247    if ( '' == trim( $term ) ) {
    22482248        return new WP_Error( 'empty_term_name', __( 'A name is required for this term.' ) );
    22492249    }
     
    28462846    $parsed_args['description'] = $description;
    28472847
    2848     if ( '' == trim($name) )
    2849         return new WP_Error('empty_term_name', __('A name is required for this term'));
     2848    if ( '' == trim( $name ) ) {
     2849        return new WP_Error( 'empty_term_name', __( 'A name is required for this term.' ) );
     2850    }
    28502851
    28512852    if ( $parsed_args['parent'] > 0 && ! term_exists( (int) $parsed_args['parent'] ) ) {
Note: See TracChangeset for help on using the changeset viewer.