From 2e4210e20985358ef909e30d293fbf97deb217a6 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Sat, 9 Jan 2016 15:16:25 +0000 Subject: [PATCH] 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 --- wp-includes/taxonomy.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 3c73094726..cd5b92a345 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -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 ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index d98b531c69..0d544c01ff 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.