split_shared_term is an action, not a filter.

See #30335


git-svn-id: https://develop.svn.wordpress.org/trunk@30498 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2014-11-21 03:50:15 +00:00
parent 3d2da1bf74
commit 5b72f2960a

View File

@@ -1,4 +1,4 @@
<?php
<?php
/**
* Sets up the default filters and actions for most
* of the WordPress hooks.
@@ -307,7 +307,7 @@ add_filter( 'determine_current_user', 'wp_validate_auth_cookie' );
add_filter( 'determine_current_user', 'wp_validate_logged_in_cookie', 20 );
// Split term updates
add_filter( 'split_shared_term', '_wp_check_split_default_terms', 10, 4 );
add_filter( 'split_shared_term', '_wp_check_split_terms_in_menus', 10, 4 );
add_action( 'split_shared_term', '_wp_check_split_default_terms', 10, 4 );
add_action( 'split_shared_term', '_wp_check_split_terms_in_menus', 10, 4 );
unset($filter, $action);