From abf8e91521d56e92a1ed9d8c2570d1cd612a34a8 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 20 Aug 2017 19:23:47 +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. Built from https://develop.svn.wordpress.org/trunk@41280 git-svn-id: http://core.svn.wordpress.org/trunk@41120 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/taxonomy.php | 8 ++++---- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 02d11d84c4..aea2efa061 100644 --- a/wp-includes/taxonomy.php +++ b/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. diff --git a/wp-includes/version.php b/wp-includes/version.php index be5a1a2f1d..068c764af0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-alpha-41279'; +$wp_version = '4.9-alpha-41280'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.