Skip to content

Commit

Permalink
Revert [43632] from the 4.9 branch.
Browse files Browse the repository at this point in the history
These new hooks are not part of the 4.9.x scope, and will be reintroduced
as part of 5.0.x.

See #44733.


git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43690 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
boonebgorges committed Oct 9, 2018
1 parent d9f721d commit 5d8518a
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/wp-includes/taxonomy.php
Expand Up @@ -578,16 +578,6 @@ function register_taxonomy_for_object_type( $taxonomy, $object_type) {
// Filter out empties. // Filter out empties.
$wp_taxonomies[ $taxonomy ]->object_type = array_filter( $wp_taxonomies[ $taxonomy ]->object_type ); $wp_taxonomies[ $taxonomy ]->object_type = array_filter( $wp_taxonomies[ $taxonomy ]->object_type );


/**
* Fires after a taxonomy is registered for an object type.
*
* @since 4.9.9
*
* @param string $taxonomy Taxonomy name.
* @param string $object_type Name of the object type.
*/
do_action( 'registered_taxonomy_for_object_type', $taxonomy, $object_type );

return true; return true;
} }


Expand Down Expand Up @@ -616,17 +606,6 @@ function unregister_taxonomy_for_object_type( $taxonomy, $object_type ) {
return false; return false;


unset( $wp_taxonomies[ $taxonomy ]->object_type[ $key ] ); unset( $wp_taxonomies[ $taxonomy ]->object_type[ $key ] );

/**
* Fires after a taxonomy is unregistered for an object type.
*
* @since 4.9.9
*
* @param string $taxonomy Taxonomy name.
* @param string $object_type Name of the object type.
*/
do_action( 'unregistered_taxonomy_for_object_type', $taxonomy, $object_type );

return true; return true;
} }


Expand Down

0 comments on commit 5d8518a

Please sign in to comment.