Make WordPress Core

Ticket #38808: 38808-sticky.patch

File 38808-sticky.patch, 633 bytes (added by ramiy, 8 years ago)
  • wp-includes/class-wp-xmlrpc-server.php

     
    12701270                        }
    12711271                } elseif ( isset( $post_data['sticky'] ) )  {
    12721272                        if ( ! current_user_can( $post_type->cap->edit_others_posts ) ) {
    1273                                 return new IXR_Error( 401, __( 'Sorry, you are not allowed to stick this post.' ) );
     1273                                return new IXR_Error( 401, __( 'Sorry, you are not allowed to make posts sticky.' ) );
    12741274                        }
    12751275
    12761276                        $sticky = wp_validate_boolean( $post_data['sticky'] );