Make WordPress Core


Ignore:
Timestamp:
09/26/2015 05:30:34 AM (8 years ago)
Author:
wonderboymusic
Message:

XML-RPC: in wp_xmlrpc_server::wp_editTerm(), check ! empty when applying parent logic.

Adds unit tests.

Props hrishiv90, markoheijnen, sam2kb.
Fixes #21977.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r34579 r34580  
    19351935        }
    19361936
    1937         if ( isset( $content_struct['parent'] ) ) {
     1937        if ( ! empty( $content_struct['parent'] ) ) {
    19381938            if ( ! $taxonomy['hierarchical'] )
    19391939                return new IXR_Error( 403, __( "This taxonomy is not hierarchical so you can't set a parent." ) );
Note: See TracChangeset for help on using the changeset viewer.