Changeset 38076 for trunk/src/wp-includes/class-wp-xmlrpc-server.php
- Timestamp:
- 07/17/2016 04:04:50 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r38051 r38076 1303 1303 $post_type = get_post_type_object( $post_data['post_type'] ); 1304 1304 if ( ! $post_type ) 1305 return new IXR_Error( 403, __( 'Invalid post type ' ) );1305 return new IXR_Error( 403, __( 'Invalid post type.' ) ); 1306 1306 1307 1307 $update = ! empty( $post_data['ID'] ); … … 4099 4099 4100 4100 if ( ! post_type_exists( $post_type_name ) ) 4101 return new IXR_Error( 403, __( 'Invalid post type ' ) );4101 return new IXR_Error( 403, __( 'Invalid post type.' ) ); 4102 4102 4103 4103 $post_type = get_post_type_object( $post_type_name ); … … 4858 4858 } else { 4859 4859 // No other post_type values are allowed here 4860 return new IXR_Error( 401, __( 'Invalid post type ' ) );4860 return new IXR_Error( 401, __( 'Invalid post type.' ) ); 4861 4861 } 4862 4862 } else { … … 4916 4916 break; 4917 4917 default: 4918 return new IXR_Error( 401, __( 'Invalid post type ' ) );4918 return new IXR_Error( 401, __( 'Invalid post type.' ) ); 4919 4919 } 4920 4920 $author = get_userdata( $content_struct['wp_author_id'] ); … … 5194 5194 // Use wp.editPost to edit post types other than post and page. 5195 5195 if ( ! in_array( $postdata[ 'post_type' ], array( 'post', 'page' ) ) ) 5196 return new IXR_Error( 401, __( 'Invalid post type ' ) );5196 return new IXR_Error( 401, __( 'Invalid post type.' ) ); 5197 5197 5198 5198 // Thwart attempt to change the post type. … … 5258 5258 break; 5259 5259 default: 5260 return new IXR_Error( 401, __( 'Invalid post type ' ) );5260 return new IXR_Error( 401, __( 'Invalid post type.' ) ); 5261 5261 } 5262 5262 $post_author = $content_struct['wp_author_id'];
Note: See TracChangeset
for help on using the changeset viewer.