Make WordPress Core

Ticket #41637: 41637.patch

File 41637.patch, 675 bytes (added by ramiy, 7 years ago)
  • wp-includes/class-wp-xmlrpc-server.php

     
    20652065
    20662066                if ( ! empty( $content_struct['parent'] ) ) {
    20672067                        if ( ! $taxonomy['hierarchical'] )
    2068                                 return new IXR_Error( 403, __( "This taxonomy is not hierarchical so you can't set a parent." ) );
     2068                                return new IXR_Error( 403, __( 'Cannot set parent term, taxonomy is not hierarchical.' ) );
    20692069
    20702070                        $parent_term_id = (int) $content_struct['parent'];
    20712071                        $parent_term = get_term( $parent_term_id , $taxonomy['name'] );