diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php
index 1a4d1ca..d6acba6 100644
a
|
b
|
class wp_xmlrpc_server extends IXR_Server { |
3895 | 3895 | // Handle post formats if assigned, value is validated earlier |
3896 | 3896 | // in this function |
3897 | 3897 | if ( isset( $content_struct['wp_post_format'] ) ) |
3898 | | wp_set_post_terms( $post_ID, array( 'post-format-' . $content_struct['wp_post_format'] ), 'post_format' ); |
| 3898 | set_post_format( $post_ID, $content_struct['wp_post_format'] ); |
3899 | 3899 | |
3900 | 3900 | $post_ID = wp_insert_post( $postdata, true ); |
3901 | 3901 | if ( is_wp_error( $post_ID ) ) |
… |
… |
class wp_xmlrpc_server extends IXR_Server { |
4212 | 4212 | // Handle post formats if assigned, validation is handled |
4213 | 4213 | // earlier in this function |
4214 | 4214 | if ( isset( $content_struct['wp_post_format'] ) ) |
4215 | | wp_set_post_terms( $post_ID, array( 'post-format-' . $content_struct['wp_post_format'] ), 'post_format' ); |
| 4215 | set_post_format( $post_ID, $content_struct['wp_post_format'] ); |
4216 | 4216 | |
4217 | 4217 | do_action( 'xmlrpc_call_success_mw_editPost', $post_ID, $args ); |
4218 | 4218 | |