Ticket #37002: 37002.3.diff
File 37002.3.diff, 961 bytes (added by , 7 years ago) |
---|
-
src/wp-includes/post.php
2853 2853 * 2854 2854 * @param int $post_id Optional. The Post ID. Does not default to the ID of the 2855 2855 * 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 category ids. If `$fields` is 'names', an array of category names. 2858 2860 */ 2859 2861 function wp_get_post_categories( $post_id = 0, $args = array() ) { 2860 2862 $post_id = (int) $post_id;