WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/14/2012 10:10:01 AM (6 years ago)
Author:
duck_
Message:

Minor XML-RPC documentation improvements. See #20566.

Also make newly introduced _is_greater_than_one() private.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-xmlrpc-server.php

    r20775 r20782  
    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.
     
    570570     * @access protected
    571571     *
    572      * @param $date
     572     * @param string $date
    573573     * @return IXR_Date
    574574     */
     
    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     */
     
    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 ),
     
    758759     * @since 3.4.0
    759760     *
    760      * @uses wp_insert_post()
    761761     * @param array $args Method parameters. Contains:
    762762     *  - int     $blog_id
     
    806806    }
    807807
    808     /*
     808    /**
    809809     * Helper method for filtering out elements from an array.
    810810     *
    811811     * @since 3.4.0
    812      */
    813     function _is_greater_than_one( $count ) {
     812     *
     813     * @param int $count Number to compare to one.
     814     */
     815    private 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 ) {
     
    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
Note: See TracChangeset for help on using the changeset viewer.