WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/15/2014 05:08:40 AM (8 years ago)
Author:
nacin
Message:

XML-RPC: In wp.editPost, Remove all terms in a taxonomy when an empty array is explicitly passed.

props jstraitiff, maxcutler.
fixes #26686.

File:
1 edited

Legend:

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

    r27553 r27554  
    11321132
    11331133                    $term_ids = $post_data['terms'][$taxonomy];
     1134                    $terms[ $taxonomy ] = array();
    11341135                    foreach ( $term_ids as $term_id ) {
    11351136                        $term = get_term_by( 'id', $term_id, $taxonomy );
Note: See TracChangeset for help on using the changeset viewer.