Taxonomy: Use `Invalid taxonomy` instead of `Invalid Taxonomy` for error strings.
Built from https://develop.svn.wordpress.org/trunk@36244 git-svn-id: http://core.svn.wordpress.org/trunk@36211 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
710501dc53
commit
2e4210e209
|
@ -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 ) ) {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.5-alpha-36243';
|
||||
$wp_version = '4.5-alpha-36244';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue