WordPress.org

Make WordPress Core

Ticket #16316: patch.diff

File patch.diff, 677 bytes (added by feedfabrik, 10 years ago)

Suggested patch for function mw_getRecentPosts in class-wp-xmlrpc-server.php based on trunk

  • wp-includes/class-wp-xmlrpc-server.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress.org
     
    28812881                $blog_ID     = (int) $args[0];
    28822882                $username  = $args[1];
    28832883                $password   = $args[2];
    2884                 if ( isset( $args[3] ) )
     2884                if ( isset( $args[3] ) ) {
    28852885                        $query = array( 'numberposts' => absint( $args[3] ) );
    2886                 else
     2886                        if ( isset( $args[4] ) )
     2887                                $query['offset'] = absint( $args[4] );
     2888                } else
    28872889                        $query = array();
    28882890
    28892891                if ( !$user = $this->login($username, $password) )