WordPress.org

Make WordPress Core

Ticket #7287: xmlrpc.php.diff

File xmlrpc.php.diff, 434 bytes (added by josephscott, 6 years ago)
  • xmlrpc.php

     
    25982598                $posts_list = wp_get_recent_posts($num_posts); 
    25992599 
    26002600                if (!$posts_list) { 
    2601                         $this->error = new IXR_Error(500, __('Either there are no posts, or something went wrong.')); 
    2602                         return $this->error; 
     2601                        return array( ); 
    26032602                } 
    26042603 
    26052604                set_current_user( 0, $user_login );