mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user