mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
I18N: Merge two similar "Cannot set parent term" error strings.
Props ramiy. Fixes #41637. Built from https://develop.svn.wordpress.org/trunk@41574 git-svn-id: http://core.svn.wordpress.org/trunk@41407 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6fa2cea232
commit
b8edb91f43
@ -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'] );
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.9-alpha-41573';
|
$wp_version = '4.9-alpha-41574';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user