I18N: Combine two duplicate "Invalid post type" strings.

Props @ramiy.
See #18218.

git-svn-id: https://develop.svn.wordpress.org/trunk@38076 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2016-07-17 16:04:50 +00:00
parent 8756f2912f
commit 8d81483b5e
4 changed files with 10 additions and 10 deletions

View File

@@ -1069,7 +1069,7 @@ function unregister_post_type( $post_type ) {
global $wp_post_types;
if ( ! post_type_exists( $post_type ) ) {
return new WP_Error( 'invalid_post_type', __( 'Invalid post type' ) );
return new WP_Error( 'invalid_post_type', __( 'Invalid post type.' ) );
}
$post_type_object = get_post_type_object( $post_type );