From 70134f9544f7537706a7806e6ed36db24e014636 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 20 Aug 2017 19:22:46 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@41280 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/taxonomy.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php index 02d11d84c4..aea2efa061 100644 --- a/src/wp-includes/taxonomy.php +++ b/src/wp-includes/taxonomy.php @@ -284,10 +284,10 @@ function is_taxonomy_hierarchical($taxonomy) { * * Note: Do not use before the {@see 'init'} hook. * - * A simple function for creating or modifying a taxonomy object based on the - * parameters given. The function will accept an array (third optional - * parameter), along with strings for the taxonomy name and another string for - * the object type. + * A simple function for creating or modifying a taxonomy object based on + * the parameters given. If modifying an existing taxonomy object, note + * that the `$object_type` value from the original registration will be + * overwritten. * * @since 2.3.0 * @since 4.2.0 Introduced `show_in_quick_edit` argument.