WordPress.org

Make WordPress Core

Ticket #27764: category-template.php.patch

File category-template.php.patch, 1.8 KB (added by ramiy, 8 years ago)
  • category-template.php

     
    13101310 *
    13111311 * @since 2.5.0
    13121312 *
    1313  * @param int $id Post ID.
    1314  * @param string $taxonomy Taxonomy name.
    1315  * @param string $before Optional. Before list.
    1316  * @param string $sep Optional. Separate items using this.
    1317  * @param string $after Optional. After list.
    1318  * @return null|bool False on WordPress error. Returns null when displaying.
     1313 * @param int $id                Post ID.
     1314 * @param string|array $taxonomy Taxonomy name.
     1315 * @param string       $before   Optional. String to use before the term list.
     1316 * @param string       $sep      Optional. Separate items using this string.
     1317 * @param string       $after    Optional. String to use after the terms list.
     1318 * @return null|bool             False on WordPress error. Returns null when displaying.
    13191319 */
    13201320function the_terms( $id, $taxonomy, $before = '', $sep = ', ', $after = '' ) {
    13211321        $term_list = get_the_term_list( $id, $taxonomy, $before, $sep, $after );
     
    13281328         *
    13291329         * @since 2.9.0
    13301330         *
    1331          * @param array  $term_list List of terms to display.
    1332          * @param string $taxonomy  The taxonomy name.
    1333          * @param string $before    String to use before the terms.
    1334          * @param string $sep       String to use between the terms.
    1335          * @param string $after     String to use after the terms.
     1331         * @param array        $term_list List of terms to display.
     1332         * @param string|array $taxonomy  The taxonomy name.
     1333         * @param string       $before    String to use before the term list.
     1334         * @param string       $sep       Separate term items using this string.
     1335         * @param string       $after     String to use after the terms list.
    13361336         */
    13371337        echo apply_filters( 'the_terms', $term_list, $taxonomy, $before, $sep, $after );
    13381338}