mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
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
This commit is contained in:
parent
79b3576650
commit
9bc6aa1570
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user