Make WordPress Core

Ticket #48913: 48913.diff

File 48913.diff, 1.1 KB (added by dingo_d, 5 years ago)

A patched with updated docblock

  • src/wp-includes/category.php

    diff --git src/wp-includes/category.php src/wp-includes/category.php
    index 89e7de800e..f5a09138ae 100644
     
    99/**
    1010 * Retrieve list of category objects.
    1111 *
    12  * If you change the type to 'link' in the arguments, then the link categories
    13  * will be returned instead. Also all categories will be updated to be backward
     12 * If you set the 'taxonomy' argument to 'link_category', the link categories
     13 * will be returned instead. Also, all categories will be updated to be backward
    1414 * compatible with pre-2.3 plugins and themes.
    1515 *
    1616 * @since 2.1.0
     
    1919 * @param string|array $args {
    2020 *     Optional. Arguments to retrieve categories. See get_terms() for additional options.
    2121 *
    22  *     @type string $taxonomy Taxonomy to retrieve terms for. In this case, default 'category'.
     22 *     @type string $taxonomy Taxonomy to retrieve terms for. In this case, defaults to 'category'.
    2323 * }
    24  * @return array List of categories.
     24 * @return array List of category objects.
    2525 */
    2626function get_categories( $args = '' ) {
    2727        $defaults = array( 'taxonomy' => 'category' );