Make WordPress Core

Ticket #37002: 37002.2.diff

File 37002.2.diff, 960 bytes (added by DrewAPicture, 7 years ago)
  • src/wp-includes/post.php

     
    28532853 *
    28542854 * @param int   $post_id Optional. The Post ID. Does not default to the ID of the
    28552855 *                       global $post. Default 0.
    2856  * @param array $args    Optional. Category arguments. Default empty.
    2857  * @return array List of categories.
     2856 * @param array $args    Optional. Category arguments. See wp_get_object_terms(). Default empty.
     2857 * @return array List of categories. If the `'fields'` argument passed via `$args` is 'all' or
     2858 *               'all_with_object_id', an array of WP_Term objects will be returned. If `$fields`
     2859 *               is 'ids', an array of categories. If `$fields` is 'names', an array of category names.
    28582860 */
    28592861function wp_get_post_categories( $post_id = 0, $args = array() ) {
    28602862        $post_id = (int) $post_id;