Make WordPress Core

Ticket #32950: 32950.diff

File 32950.diff, 695 bytes (added by adamkheckler, 11 years ago)
  • wp-includes/post.php

     
    30133013 *                         global $post. Default 0.
    30143014 * @param string $taxonomy Optional. The taxonomy for which to retrieve terms. Default 'post_tag'.
    30153015 * @param array  $args     Optional. {@link wp_get_object_terms()} arguments. Default empty array.
    3016  * @return array List of post tags.
     3016 * @return array|WP_Error  List of post tags. WP_Error if $taxonomy doesn't exist.
    30173017 */
    30183018function wp_get_post_terms( $post_id = 0, $taxonomy = 'post_tag', $args = array() ) {
    30193019        $post_id = (int) $post_id;