WordPress.org

Make WordPress Core

Changeset 46891 for trunk


Ignore:
Timestamp:
12/12/2019 04:45:32 PM (9 months ago)
Author:
SergeyBiryukov
Message:

Docs: Update description for get_categories() to avoid suggesting the deprecated type argument.

Follow-up to [13754].

Props dingo_d.
Fixes #48913.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/category.php

    r45926 r46891  
    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
    14  * compatible with pre-2.3 plugins and themes.
     12 * If you set the 'taxonomy' argument to 'link_category', the link categories
     13 * will be returned instead.
    1514 *
    1615 * @since 2.1.0
     
    2019 *     Optional. Arguments to retrieve categories. See get_terms() for additional options.
    2120 *
    22  *     @type string $taxonomy Taxonomy to retrieve terms for. In this case, default 'category'.
     21 *     @type string $taxonomy Taxonomy to retrieve terms for. Default 'category'.
    2322 * }
    24  * @return array List of categories.
     23 * @return array List of category objects.
    2524 */
    2625function get_categories( $args = '' ) {
     
    7978 * filters and finally sanitized based on the $filter parameter value.
    8079 *
    81  * The category will converted to maintain backward compatibility.
    82  *
    8380 * @since 1.5.1
    8481 *
     
    337334
    338335/**
    339  * Update category structure to old pre 2.3 from new taxonomy structure.
     336 * Update category structure to old pre-2.3 from new taxonomy structure.
    340337 *
    341338 * This function was added for the taxonomy support to update the new category
Note: See TracChangeset for help on using the changeset viewer.