Make WordPress Core

Ticket #31359: 31359.2.diff

File 31359.2.diff, 2.8 KB (added by atimmer, 10 years ago)
  • src/wp-includes/post.php

     
    30613061 *     @type string $post_type             The post type. Default 'post'.
    30623062 *     @type int    $post_author           The ID of the user who added the post. Default is
    30633063 *                                         the current user ID.
     3064 *     @type string $post_date             The date of the post. Default is the current time.
     3065 *     @type string $post_date_gmt         The date of the post in the GMT timezone. Default is
     3066 *                                         $post_date
     3067 *     @type string $post_content          The post content. Default empty string.
     3068 *     @type string $post_title            The post title. Default empty string.
     3069 *     @type bool   $comment_status        Whether the post can accept comments. Default is the
     3070 *                                         value of 'default_comment_status' option.
    30643071 *     @type bool   $ping_status           Whether the post can accept pings. Default is the
    30653072 *                                         value of 'default_ping_status' option.
     3073 *     @type string $post_name             The post name. Default is the sanitized post title.
    30663074 *     @type int    $post_parent           Set this for the post it belongs to, if any. Default 0.
    30673075 *     @type int    $menu_order            The order it is displayed. Default 0.
    30683076 *     @type string $to_ping               Space or carriage return-separated list of URLs to ping.
     
    30693077 *                                         Default empty string.
    30703078 *     @type string $pinged                Space or carriage return-separated list of URLs that have
    30713079 *                                         been pinged. Default empty string.
     3080 *     @type string $post_modified         The date when the post was last modified. Default is
     3081 *                                         the current time.
     3082 *     @type string $post_modified_gmt     The date when the post was last modified in the GMT
     3083 *                                         timezone. Default is the current time.
    30723084 *     @type string $post_password         The password to access the post. Default empty string.
    30733085 *     @type string $guid'                 Global Unique ID for referencing the post.
    30743086 *     @type string $post_content_filtered The filtered post content. Default empty string.
    30753087 *     @type string $post_excerpt          The post excerpt. Default empty string.
     3088 *     @type string $post_mime_type        The mime type of the post. 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.