Make WordPress Core

Ticket #35321: 35321.diff

File 35321.diff, 607 bytes (added by TimothyBlynJacobs, 9 years ago)
  • src/wp-includes/taxonomy.php

     
    25752575        }
    25762576        $defaults = array( 'alias_of' => '', 'description' => '', 'parent' => 0, 'slug' => '');
    25772577        $args = wp_parse_args( $args, $defaults );
     2578        $args['description'] = (string) $args['description']; // coerce null to empty stringt
    25782579
    25792580        if ( $args['parent'] > 0 && ! term_exists( (int) $args['parent'] ) ) {
    25802581                return new WP_Error( 'missing_parent', __( 'Parent term does not exist.' ) );