Make WordPress Core

Ticket #34413: add-extra-info-to-register-taxonomy-comment.diff

File add-extra-info-to-register-taxonomy-comment.diff, 1.0 KB (added by BjornW, 9 years ago)

Change comment and warn for multiple calls of register_taxonomy()

  • wp-includes/taxonomy-functions.php

     
    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
     267 * A simple function for creating a taxonomy object based on the
    268268 * parameters given. The function will accept an array (third optional
    269269 * parameter), along with strings for the taxonomy name and another string for
    270270 * the object type.
    271271 *
     272 * Note: Subsequently calling register_taxonomy() with the same taxonomy key results in overwriting the previous registered object type with the latter one.
     273 *
    272274 * @since 2.3.0
    273275 * @since 4.2.0 Introduced `show_in_quick_edit` argument.
    274276 * @since 4.4.0 The `show_ui` argument is now enforced on the term editing screen.