Make WordPress Core


Ignore:
Timestamp:
08/21/2020 10:30:06 PM (6 years ago)
Author:
flixos90
Message:

Taxonomy: Allow for wp_count_terms( $args ) signature, making passing a taxonomy optional.

This brings wp_count_terms() in line with other taxonomy functions such as get_terms() which technically no longer require a taxonomy. Similar to the previously modified functions, no deprecation warning is triggered when using the legacy signature.

Fixes #36399.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/nav-menu.php

    r48586 r48840  
    726726        $num_pages = ceil(
    727727                wp_count_terms(
    728                         $taxonomy_name,
    729728                        array_merge(
    730729                                $args,
Note: See TracChangeset for help on using the changeset viewer.