Changeset 20671
- Timestamp:
- 05/01/2012 09:03:50 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-xmlrpc-server.php
r20670 r20671 525 525 'public' => (bool) $taxonomy->public, 526 526 'show_ui' => (bool) $taxonomy->show_ui, 527 '_builtin' => (bool) $tax nomy->_builtin,527 '_builtin' => (bool) $taxonomy->_builtin, 528 528 ); 529 529 … … 535 535 536 536 if ( in_array( 'object_types', $fields ) ) 537 $_taxonomy[' taxonomies'] = array_unique( (array) $taxonomy->object_type );537 $_taxonomy['object_type'] = array_unique( (array) $taxonomy->object_type ); 538 538 539 539 return apply_filters( 'xmlrpc_prepare_taxonomy', $_taxonomy, $taxonomy, $fields ); … … 903 903 if ( $post_data['post_type'] == 'post' ) { 904 904 // Private and password-protected posts cannot be stickied. 905 if ( $post_data[' status'] == 'private' || ! empty( $post_data['post_password'] ) ) {905 if ( $post_data['post_status'] == 'private' || ! empty( $post_data['post_password'] ) ) { 906 906 // Error if the client tried to stick the post, otherwise, silently unstick. 907 907 if ( ! empty( $post_data['sticky'] ) ) … … 3948 3948 $this->escape($args); 3949 3949 3950 $post_ID = (int) $args[0];3951 $username = $args[1];3952 $password = $args[2];3950 $post_ID = (int) $args[0]; 3951 $username = $args[1]; 3952 $password = $args[2]; 3953 3953 $content_struct = $args[3]; 3954 $publish = $args[4];3954 $publish = isset( $args[4] ) ? $args[4] : 0; 3955 3955 3956 3956 if ( ! $user = $this->login($username, $password) ) … … 4106 4106 $post_excerpt = $content_struct['mt_excerpt']; 4107 4107 4108 if ( isset( $content_struct['mt_text_more'] ) ) 4109 $post_more = $content_struct['mt_text_more']; 4108 $post_more = isset( $content_struct['mt_text_more'] ) ? $content_struct['mt_text_more'] : null; 4110 4109 4111 4110 $post_status = $publish ? 'publish' : 'draft';
Note: See TracChangeset
for help on using the changeset viewer.