Ticket #41637: 41637.patch
File 41637.patch, 675 bytes (added by , 7 years ago) |
---|
-
wp-includes/class-wp-xmlrpc-server.php
2065 2065 2066 2066 if ( ! empty( $content_struct['parent'] ) ) { 2067 2067 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.' ) ); 2069 2069 2070 2070 $parent_term_id = (int) $content_struct['parent']; 2071 2071 $parent_term = get_term( $parent_term_id , $taxonomy['name'] );