mirror of
git://develop.git.wordpress.org/
synced 2025-02-24 08:33:35 +01:00
Taxonomy: Use Invalid taxonomy
instead of Invalid Taxonomy
for error strings.
git-svn-id: https://develop.svn.wordpress.org/trunk@36244 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
eafbcb3b6e
commit
f4b3c2453c
@ -490,7 +490,7 @@ function register_taxonomy( $taxonomy, $object_type, $args = array() ) {
|
||||
*/
|
||||
function unregister_taxonomy( $taxonomy ) {
|
||||
if ( ! taxonomy_exists( $taxonomy ) ) {
|
||||
return new WP_Error( 'invalid_taxonomy', __( 'Invalid Taxonomy' ) );
|
||||
return new WP_Error( 'invalid_taxonomy', __( 'Invalid taxonomy' ) );
|
||||
}
|
||||
|
||||
$taxonomy_args = get_taxonomy( $taxonomy );
|
||||
@ -2994,7 +2994,7 @@ function wp_remove_object_terms( $object_id, $terms, $taxonomy ) {
|
||||
$object_id = (int) $object_id;
|
||||
|
||||
if ( ! taxonomy_exists( $taxonomy ) ) {
|
||||
return new WP_Error( 'invalid_taxonomy', __( 'Invalid Taxonomy' ) );
|
||||
return new WP_Error( 'invalid_taxonomy', __( 'Invalid taxonomy' ) );
|
||||
}
|
||||
|
||||
if ( ! is_array( $terms ) ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user