From 9bc6aa15700fca20b85e38cad1a7c9603071e57a Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Thu, 17 Nov 2016 23:35:32 +0000 Subject: [PATCH] Taxonomy: Update `register_taxonomy` hook to use `WP_Taxonomy` object. Casts `WP_Taxonomy` to an array for passing to the `register_taxonomy` hook. This maintains backward compatibility with the processed arguments used prior to WordPress 4.7. Fixes #38765. Built from https://develop.svn.wordpress.org/trunk@39283 git-svn-id: http://core.svn.wordpress.org/trunk@39223 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/taxonomy.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 9ddd02c4de..72ce505fba 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -393,7 +393,7 @@ function register_taxonomy( $taxonomy, $object_type, $args = array() ) { * @param array|string $object_type Object type or array of object types. * @param array $args Array of taxonomy registration arguments. */ - do_action( 'registered_taxonomy', $taxonomy, $object_type, $args ); + do_action( 'registered_taxonomy', $taxonomy, $object_type, (array) $taxonomy_object ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 4e42c95302..94d02ee51f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-beta4-39282'; +$wp_version = '4.7-beta4-39283'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.