Make WordPress Core

Ticket #18218: required-name.patch

File required-name.patch, 633 bytes (added by ramiy, 8 years ago)
  • wp-includes/taxonomy.php

     
    28462846        $parsed_args['description'] = $description;
    28472847
    28482848        if ( '' == trim($name) )
    2849                 return new WP_Error('empty_term_name', __('A name is required for this term'));
     2849                return new WP_Error( 'empty_term_name', __( 'A name is required for this term.' ) );
    28502850
    28512851        if ( $parsed_args['parent'] > 0 && ! term_exists( (int) $parsed_args['parent'] ) ) {
    28522852                return new WP_Error( 'missing_parent', __( 'Parent term does not exist.' ) );