Ticket #20662: 20662.2.patch
File 20662.2.patch, 840 bytes (added by , 10 years ago) |
---|
-
wp-includes/class-wp-xmlrpc-server.php
4579 4579 $post_ID = $postdata['ID'] = get_default_post_to_edit( $post_type, true )->ID; 4580 4580 4581 4581 // Only posts can be sticky 4582 if ( $postdata['post_status'] == 'private' || ! empty( $postdata['post_password'] ) ) { 4583 // Error if the client tried to stick the post, otherwise, silently unstick. 4584 if ( ! empty( $content_struct['sticky'] ) ) { 4585 return new IXR_Error( 401, __( 'Sorry, you cannot stick a private post.' ) ); 4586 } 4587 } 4588 4582 4589 if ( $post_type == 'post' && isset( $content_struct['sticky'] ) ) { 4583 4590 if ( $content_struct['sticky'] == true ) 4584 4591 stick_post( $post_ID );