Make WordPress Core

Ticket #20566: 20566.xmlrpc-docs.diff

File 20566.xmlrpc-docs.diff, 3.0 KB (added by duck_, 13 years ago)
  • wp-includes/class-wp-xmlrpc-server.php

     
    493493        /**
    494494         * Checks if the method received at least the minimum number of arguments.
    495495         *
    496          * @since 3.4
     496         * @since 3.4.0
    497497         *
    498498         * @param string|array $args Sanitize single string or array of strings.
    499499         * @param int $count Minimum number of arguments.
     
    569569         *
    570570         * @access protected
    571571         *
    572          * @param $date
     572         * @param string $date
    573573         * @return IXR_Date
    574574         */
    575575        protected function _convert_date( $date ) {
     
    580580        }
    581581
    582582        /**
    583          * Convert a WordPress gmt date string to an IXR_Date object.
     583         * Convert a WordPress GMT date string to an IXR_Date object.
    584584         *
    585585         * @access protected
    586586         *
    587          * @param $date
     587         * @param string $date_gmt
     588         * @param string $date
    588589         * @return IXR_Date
    589590         */
    590591        protected function _convert_date_gmt( $date_gmt, $date ) {
     
    728729         * @access protected
    729730         *
    730731         * @param object $media_item The unprepared media item data
    731          * @param string $size The image size to use for the thumbnail URL
     732         * @param string $thumbnail_size The image size to use for the thumbnail URL
    732733         * @return array The prepared media item data
    733734         */
    734         protected function _prepare_media_item( $media_item, $thumbnail_size='thumbnail' ) {
     735        protected function _prepare_media_item( $media_item, $thumbnail_size = 'thumbnail' ) {
    735736                $_media_item = array(
    736737                        'attachment_id'    => strval( $media_item->ID ),
    737738                        'date_created_gmt' => $this->_convert_date_gmt( $media_item->post_date_gmt, $media_item->post_date ),
     
    757758         *
    758759         * @since 3.4.0
    759760         *
    760          * @uses wp_insert_post()
    761761         * @param array $args Method parameters. Contains:
    762762         *  - int     $blog_id
    763763         *  - string  $username
     
    805805                return $this->_insert_post( $user, $content_struct );
    806806        }
    807807
    808         /*
     808        /**
    809809         * Helper method for filtering out elements from an array.
    810810         *
    811811         * @since 3.4.0
     812         *
     813         * @param int $count Number to compare to one.
    812814         */
    813         function _is_greater_than_one( $count ) {
     815        protected function _is_greater_than_one( $count ) {
    814816                return $count > 1;
    815817        }
    816818
    817         /*
     819        /**
    818820         * Helper method for wp_newPost and wp_editPost, containing shared logic.
    819821         *
    820822         * @since 3.4.0
     823         * @uses wp_insert_post()
     824         *
     825         * @param WP_User $user The post author if post_author isn't set in $content_struct.
     826         * @param array $content_struct Post data to insert.
    821827         */
    822828        protected function _insert_post( $user, $content_struct ) {
    823829                $defaults = array( 'post_status' => 'draft', 'post_type' => 'post', 'post_author' => 0,
     
    10471053        /**
    10481054         * Edit a post for any registered post type.
    10491055         *
    1050          * @since 3.4.0
    1051          *
    10521056         * The $content_struct parameter only needs to contain fields that
    10531057         * should be changed. All other fields will retain their existing values.
    10541058         *
    1055          * @uses wp_insert_post()
     1059         * @since 3.4.0
     1060         *
    10561061         * @param array $args Method parameters. Contains:
    10571062         *  - int     $blog_id
    10581063         *  - string  $username