WordPress.org

Make WordPress Core

Ticket #19780: 19780.2.diff

File 19780.2.diff, 1.8 KB (added by evansolomon, 6 years ago)

Fixes gramatical typos. Props helenyhou

  • wp-includes/category-template.php

     
    379379}
    380380
    381381/**
    382  * Display or retrieve the HTML list of categories.
     382 * Display or retrieve the HTML dropdown list of terms.
    383383 *
     384 * The list of arguments matches wp_dropdown_categories() with the exception of
     385 * 'taxonomy', which is its own function argument here.
     386 *
     387 * @since 3.5
     388 *
     389 * @param string $taxonomy Taxonomy name
     390 * @param string|array $args Optional. Override default arguments.
     391 * @return string HTML content only if 'echo' argument is 0.
     392 */
     393function wp_dropdown_terms( $taxonomy, $args = '' ) {
     394        $args = wp_parse_args( $args );
     395        $args['taxonomy'] = $taxonomy;
     396
     397        return wp_dropdown_categories( $args );
     398}
     399
     400/**
     401 * Display or retrieve the HTML list of a taxonomy's terms.
     402 *
    384403 * The list of arguments is below:
    385404 *     'show_option_all' (string) - Text to display for showing all categories.
    386405 *     'orderby' (string) default is 'ID' - What column to use for ordering the
     
    491510}
    492511
    493512/**
     513 * Display or retrieve the HTML list of a taxonomy's terms.
     514 *
     515 * The list of arguments matches wp_list_categories() with the exception of
     516 * 'taxonomy', which is its own function argument here.
     517 *
     518 * @since 3.5
     519 *
     520 * @param string $taxonomy Taxonomy name
     521 * @param string|array $args Optional. Override default arguments.
     522 * @return string HTML content only if 'echo' argument is 0.
     523 */
     524function wp_list_terms( $taxonomy, $args = '' ) {
     525        $args = wp_parse_args( $args );
     526        $args['taxonomy'] = $taxonomy;
     527
     528        return wp_list_categories( $args );
     529}
     530
     531/**
    494532 * Display tag cloud.
    495533 *
    496534 * The text size is set by the 'smallest' and 'largest' arguments, which will