WordPress.org

Make WordPress Core

Ticket #20723: 20723.patch

File 20723.patch, 1020 bytes (added by SergeyBiryukov, 10 years ago)

Also corrects PHPDocs

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

     
    13071307         * @since 3.4.0
    13081308         *
    13091309         * The optional $filter parameter modifies the query used to retrieve posts.
    1310          * Accepted keys are 'post_type', 'post_status', 'number', 'offset',
     1310         * Accepted keys are 'post_type', 'post_status', 'numberposts', 'offset',
    13111311         * 'orderby', and 'order'.
    13121312         *
    13131313         * The optional $fields parameter specifies what fields will be included
     
    13621362                if ( isset( $filter['post_status'] ) )
    13631363                        $query['post_status'] = $filter['post_status'];
    13641364
    1365                 if ( isset( $filter['number'] ) )
    1366                         $query['number'] = absint( $filter['number'] );
     1365                if ( isset( $filter['numberposts'] ) )
     1366                        $query['numberposts'] = absint( $filter['numberposts'] );
    13671367
    13681368                if ( isset( $filter['offset'] ) )
    13691369                        $query['offset'] = absint( $filter['offset'] );