From 5af4552f6d87b7d4c85765a032863a83d6915079 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 22 Sep 2017 22:07:35 +0000 Subject: [PATCH] I18N: Merge two similar "Cannot set parent term" error strings. Props ramiy. Fixes #41637. git-svn-id: https://develop.svn.wordpress.org/trunk@41574 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-xmlrpc-server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-xmlrpc-server.php b/src/wp-includes/class-wp-xmlrpc-server.php index 1c9ec17f33..ee04cc0c1d 100644 --- a/src/wp-includes/class-wp-xmlrpc-server.php +++ b/src/wp-includes/class-wp-xmlrpc-server.php @@ -2065,7 +2065,7 @@ class wp_xmlrpc_server extends IXR_Server { if ( ! empty( $content_struct['parent'] ) ) { if ( ! $taxonomy['hierarchical'] ) - return new IXR_Error( 403, __( "This taxonomy is not hierarchical so you can't set a parent." ) ); + return new IXR_Error( 403, __( 'Cannot set parent term, taxonomy is not hierarchical.' ) ); $parent_term_id = (int) $content_struct['parent']; $parent_term = get_term( $parent_term_id , $taxonomy['name'] );