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
This commit is contained in:
parent
b9f3ed82d6
commit
5af4552f6d
@ -2065,7 +2065,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||||||
|
|
||||||
if ( ! empty( $content_struct['parent'] ) ) {
|
if ( ! empty( $content_struct['parent'] ) ) {
|
||||||
if ( ! $taxonomy['hierarchical'] )
|
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_id = (int) $content_struct['parent'];
|
||||||
$parent_term = get_term( $parent_term_id , $taxonomy['name'] );
|
$parent_term = get_term( $parent_term_id , $taxonomy['name'] );
|
||||||
|
Loading…
Reference in New Issue
Block a user