Ticket #31359: 31359.2.diff
File 31359.2.diff, 2.8 KB (added by , 10 years ago) |
---|
-
src/wp-includes/post.php
3061 3061 * @type string $post_type The post type. Default 'post'. 3062 3062 * @type int $post_author The ID of the user who added the post. Default is 3063 3063 * 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. 3064 3071 * @type bool $ping_status Whether the post can accept pings. Default is the 3065 3072 * value of 'default_ping_status' option. 3073 * @type string $post_name The post name. Default is the sanitized post title. 3066 3074 * @type int $post_parent Set this for the post it belongs to, if any. Default 0. 3067 3075 * @type int $menu_order The order it is displayed. Default 0. 3068 3076 * @type string $to_ping Space or carriage return-separated list of URLs to ping. … … 3069 3077 * Default empty string. 3070 3078 * @type string $pinged Space or carriage return-separated list of URLs that have 3071 3079 * 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. 3072 3084 * @type string $post_password The password to access the post. Default empty string. 3073 3085 * @type string $guid' Global Unique ID for referencing the post. 3074 3086 * @type string $post_content_filtered The filtered post content. Default empty string. 3075 3087 * @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. 3076 3089 * } 3077 3090 * @param bool $wp_error Optional. Whether to allow return of WP_Error on failure. Default false. 3078 3091 * @return int|WP_Error The post ID on success. The value 0 or WP_Error on failure.