Make WordPress Core

Changeset 43690 for branches/4.9


Ignore:
Timestamp:
10/09/2018 06:17:32 PM (8 years ago)
Author:
boonebgorges
Message:

Revert [43632] from the 4.9 branch.

These new hooks are not part of the 4.9.x scope, and will be reintroduced
as part of 5.0.x.

See #44733.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-includes/taxonomy.php

    r43632 r43690  
    579579        $wp_taxonomies[ $taxonomy ]->object_type = array_filter( $wp_taxonomies[ $taxonomy ]->object_type );
    580580
    581         /**
    582          * Fires after a taxonomy is registered for an object type.
    583          *
    584          * @since 4.9.9
    585          *
    586          * @param string $taxonomy    Taxonomy name.
    587          * @param string $object_type Name of the object type.
    588          */
    589         do_action( 'registered_taxonomy_for_object_type', $taxonomy, $object_type );
    590 
    591581        return true;
    592582}
    … …  
    617607
    618608        unset( $wp_taxonomies[ $taxonomy ]->object_type[ $key ] );
    619 
    620         /**
    621          * Fires after a taxonomy is unregistered for an object type.
    622          *
    623          * @since 4.9.9
    624          *
    625          * @param string $taxonomy    Taxonomy name.
    626          * @param string $object_type Name of the object type.
    627          */
    628         do_action( 'unregistered_taxonomy_for_object_type', $taxonomy, $object_type );
    629 
    630609        return true;
    631610}
Note: See TracChangeset for help on using the changeset viewer.