Make WordPress Core

Ticket #45171: 45171.patch

File 45171.patch, 1.5 KB (added by Takahashi_Fumiki, 3 years ago)

Fix doc comment of wp_insert_post and wp_set_post_categories.

  • src/wp-includes/post.php

    33073307 *     @type int    $menu_order            The order the post should be displayed in. Default 0.
    33083308 *     @type string $post_mime_type        The mime type of the post. Default empty.
    33093309 *     @type string $guid                  Global Unique ID for referencing the post. Default empty.
    3310  *     @type array  $post_category         Array of category names, slugs, or IDs.
     3310 *     @type array  $post_category         Array of category IDs.
    33113311 *                                         Defaults to value of the 'default_category' option.
    33123312 *     @type array  $tags_input            Array of tag names, slugs, or IDs. Default empty.
    33133313 *     @type array  $tax_input             Array of taxonomy terms keyed by their taxonomy name. Default empty.
    42934293 *
    42944294 * @param int       $post_ID         Optional. The Post ID. Does not default to the ID
    42954295 *                                   of the global $post. Default 0.
    4296  * @param array|int $post_categories Optional. List of categories or ID of category.
     4296 * @param array|int $post_categories Optional. List of category IDs or ID of category.
    42974297 *                                   Default empty array.
    42984298 * @param bool      $append         If true, don't delete existing categories, just add on.
    42994299 *                                  If false, replace the categories with the new categories.