- Timestamp:
- 10/31/2016 11:05:37 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r39049 r39055 1197 1197 } 1198 1198 1199 $terms = array_map( 'absint', $request[ $base ] ); 1200 $result = wp_set_object_terms( $post_id, $terms, $taxonomy->name ); 1199 $result = wp_set_object_terms( $post_id, $request[ $base ], $taxonomy->name ); 1201 1200 1202 1201 if ( is_wp_error( $result ) ) { … … 1966 1965 'type' => 'integer', 1967 1966 ), 1967 'arg_options' => array( 1968 'sanitize_callback' => 'wp_parse_id_list', 1969 ), 1968 1970 'context' => array( 'view', 'edit' ), 1969 1971 ); … … 1971 1973 'description' => sprintf( __( 'The terms in the %s taxonomy that should not be assigned to the object.' ), $taxonomy->name ), 1972 1974 'type' => 'array', 1975 'items' => array( 1976 'type' => 'integer', 1977 ), 1978 'arg_options' => array( 1979 'sanitize_callback' => 'wp_parse_id_list', 1980 ), 1973 1981 'context' => array( 'view', 'edit' ), 1974 1982 );
Note: See TracChangeset
for help on using the changeset viewer.