1 | Index: class-wp-xmlrpc-server.php |
---|
2 | =================================================================== |
---|
3 | --- class-wp-xmlrpc-server.php (revision 21954) |
---|
4 | +++ class-wp-xmlrpc-server.php (working copy) |
---|
5 | @@ -1475,7 +1475,7 @@ |
---|
6 | if ( isset( $filter['order'] ) ) |
---|
7 | $query['order'] = $filter['order']; |
---|
8 | } |
---|
9 | - |
---|
10 | + |
---|
11 | if ( isset( $filter['s'] ) ) { |
---|
12 | $query['s'] = $filter['s']; |
---|
13 | } |
---|
14 | @@ -1552,7 +1552,7 @@ |
---|
15 | if ( empty( $term_data['name'] ) ) |
---|
16 | return new IXR_Error( 403, __( 'The term name cannot be empty.' ) ); |
---|
17 | |
---|
18 | - if ( isset( $content_struct['parent'] ) ) { |
---|
19 | + if ( ! empty( $content_struct['parent'] ) ) { |
---|
20 | if ( ! $taxonomy['hierarchical'] ) |
---|
21 | return new IXR_Error( 403, __( 'This taxonomy is not hierarchical.' ) ); |
---|
22 | |
---|
23 | @@ -1651,7 +1651,7 @@ |
---|
24 | return new IXR_Error( 403, __( 'The term name cannot be empty.' ) ); |
---|
25 | } |
---|
26 | |
---|
27 | - if ( isset( $content_struct['parent'] ) ) { |
---|
28 | + if ( ! empty( $content_struct['parent'] ) ) { |
---|
29 | if ( ! $taxonomy['hierarchical'] ) |
---|
30 | return new IXR_Error( 403, __( "This taxonomy is not hierarchical so you can't set a parent." ) ); |
---|
31 | |
---|
32 | @@ -5424,4 +5424,4 @@ |
---|
33 | |
---|
34 | return $pingbacks; |
---|
35 | } |
---|
36 | -} |
---|
37 | +} |
---|
38 | \ No newline at end of file |
---|