Make WordPress Core

Changeset 41280


Ignore:
Timestamp:
08/20/2017 07:22:46 PM (6 years ago)
Author:
DrewAPicture
Message:

Docs: Add a note to the register_taxonomy() DocBlock that the object types defined in $object_type when modifying an already-registered taxonomy will be overwritten.

Props danielbachhuber and BjornW for the initial patches.
Fixes #34413.

File:
1 edited

Legend:

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

    r41235 r41280  
    285285 * Note: Do not use before the {@see 'init'} hook.
    286286 *
    287  * A simple function for creating or modifying a taxonomy object based on the
    288  * parameters given. The function will accept an array (third optional
    289  * parameter), along with strings for the taxonomy name and another string for
    290  * the object type.
     287 * A simple function for creating or modifying a taxonomy object based on
     288 * the parameters given. If modifying an existing taxonomy object, note
     289 * that the `$object_type` value from the original registration will be
     290 * overwritten.
    291291 *
    292292 * @since 2.3.0
Note: See TracChangeset for help on using the changeset viewer.