Make WordPress Core

Ticket #31359: 31359.4.diff

File 31359.4.diff, 3.7 KB (added by atimmer, 9 years ago)
  • src/wp-includes/post.php

     
    30573057 *
    30583058 *     @type int    $ID                    The post ID. If equal to something other than 0,
    30593059 *                                         the post with that ID will be updated. Default 0.
     3060 *     @type int    $post_author           The ID of the user who added the post. Default is
     3061 *                                         the current user ID.
     3062 *     @type string $post_date             The date of the post. Default is the current time.
     3063 *     @type string $post_date_gmt         The date of the post in the GMT timezone. Default is
     3064 *                                         $post_date.
     3065 *     @type string $post_content          The post content. Default empty string.
     3066 *     @type string $post_content_filtered The filtered post content. Default empty string.
     3067 *     @type string $post_title            The post title. Default empty string.
     3068 *     @type string $post_excerpt          The post excerpt. Default empty string.
    30603069 *     @type string $post_status           The post status. Default 'draft'.
    30613070 *     @type string $post_type             The post type. Default 'post'.
    3062  *     @type int    $post_author           The ID of the user who added the post. Default is
    3063  *                                         the current user ID.
    3064  *     @type bool  $ping_status           Whether the post can accept pings. Default is the
     3071 *     @type string $comment_status        Whether the post can accept comments. Default is the
     3072 *                                         value of 'default_comment_status' option.
     3073 *     @type string $ping_status           Whether the post can accept pings. Default is the
    30653074 *                                         value of 'default_ping_status' option.
    3066  *     @type int    $post_parent           Set this for the post it belongs to, if any. Default 0.
    3067  *     @type int    $menu_order            The order it is displayed. Default 0.
     3075 *     @type string $post_password         The password to access the post. Default empty string.
     3076 *     @type string $post_name             The post name. Default is the sanitized post title.
    30683077 *     @type string $to_ping               Space or carriage return-separated list of URLs to ping.
    30693078 *                                         Default empty string.
    30703079 *     @type string $pinged                Space or carriage return-separated list of URLs that have
    30713080 *                                         been pinged. Default empty string.
    3072  *     @type string $post_password         The password to access the post. Default empty string.
     3081 *     @type string $post_modified         The date when the post was last modified. Default is
     3082 *                                         the current time.
     3083 *     @type string $post_modified_gmt     The date when the post was last modified in the GMT
     3084 *                                         timezone. Default is the current time.
     3085 *     @type int    $post_parent           Set this for the post it belongs to, if any. Default 0.
     3086 *     @type int    $menu_order            The order it is displayed. Default 0.
     3087 *     @type string $post_mime_type        The mime type of the post. Default empty string.
    30733088 *     @type string $guid'                 Global Unique ID for referencing the post.
    3074  *     @type string $post_content_filtered The filtered post content. Default empty string.
    3075  *     @type string $post_excerpt          The post excerpt. Default empty string.
    30763089 * }
    30773090 * @param bool  $wp_error Optional. Whether to allow return of WP_Error on failure. Default false.
    30783091 * @return int|WP_Error The post ID on success. The value 0 or WP_Error on failure.