WordPress.org

Make WordPress Core

Ticket #7336: 7336.diff

File 7336.diff, 593 bytes (added by scohoust, 6 years ago)
  • Users/Scott/Sites/wp/trunk/wp-includes/taxonomy.php

     
    14681468        // expected_slashed ($name) 
    14691469        $name = stripslashes($name); 
    14701470        $description = stripslashes($description); 
     1471         
     1472        // Check for an empty name 
     1473        if ( empty($name) ) { 
     1474                 return new WP_Error('no_term_name', __('A name is required for this term.')); 
     1475        } 
    14711476 
    14721477        $empty_slug = false; 
    14731478        if ( empty($slug) ) {