Make WordPress Core

Ticket #34413: 34413.1.diff

File 34413.1.diff, 1.1 KB (added by danielbachhuber, 8 years ago)

Clarify register_taxonomy() documentation to respect actual behavior

  • src/wp-includes/taxonomy-functions.php

    diff --git a/src/wp-includes/taxonomy-functions.php b/src/wp-includes/taxonomy-functions.php
    index 891951b..1e1b1ce 100644
    a b function is_taxonomy_hierarchical($taxonomy) { 
    260260}
    261261
    262262/**
    263  * Creates or modifies a taxonomy object.
     263 * Creates a taxonomy object.
    264264 *
    265265 * Note: Do not use before the {@see 'init'} hook.
    266266 *
    267  * A simple function for creating or modifying a taxonomy object based on the
    268  * parameters given. The function will accept an array (third optional
    269  * parameter), along with strings for the taxonomy name and another string for
    270  * the object type.
     267 * A simple function for creating a taxonomy object based on the parameters
     268 * given. The function will accept an array (third optional parameter),
     269 * along with strings for the taxonomy name and another string for the
     270 * object type. When function is called a subsequent time using the key
     271 * for an already-registered taxonomy, the registered taxonomy will be
     272 * overwritten.
    271273 *
    272274 * @since 2.3.0
    273275 * @since 4.2.0 Introduced `show_in_quick_edit` argument.