Make WordPress Core

Changeset 32572


Ignore:
Timestamp:
05/24/2015 04:40:23 PM (11 years ago)
Author:
DrewAPicture
Message:

Add missing argument descriptions in the DocBlock for wp_xmlrpc_server->wp_deletePost().

See #32246.

File:
1 edited

Legend:

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

    r32569 r32572  
    14751475                }
    14761476
    1477                 // convert the date field back to IXR form
     1477                // Convert the date field back to IXR form.
    14781478                $post['post_date'] = $this->_convert_date( $post['post_date'] );
    14791479
    1480                 // ignore the existing GMT date if it is empty or a non-GMT date was supplied in $content_struct,
    1481                 // since _insert_post will ignore the non-GMT date if the GMT date is set
     1480                /*
     1481                 * Ignore the existing GMT date if it is empty or a non-GMT date was supplied in $content_struct,
     1482                 * since _insert_post() will ignore the non-GMT date if the GMT date is set.
     1483                 */
    14821484                if ( $post['post_date_gmt'] == '0000-00-00 00:00:00' || isset( $content_struct['post_date'] ) )
    14831485                        unset( $post['post_date_gmt'] );
    … …  
    15001502         * @since 3.4.0
    15011503         *
    1502          * @uses wp_delete_post()
     1504         * @see wp_delete_post()
    15031505         *
    15041506         * @param array  $args {
    15051507         *     Method parameters, in this order:
    15061508         *
    1507          *     @type int    $blog_id (unused)
    1508          *     @type string $username
    1509          *     @type string $password
    1510          *     @type int    $post_id
     1509         *     @type int    $blog_id  Blog ID (unused).
     1510         *     @type string $username Username.
     1511         *     @type string $password Password.
     1512         *     @type int    $post_id  Post ID.
    15111513         * }
    1512          * @return true|IXR_Error true on success
     1514         * @return true|IXR_Error True on success, IXR_Error instance on failure.
    15131515         */
    15141516        public function wp_deletePost( $args ) {
Note: See TracChangeset for help on using the changeset viewer.