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

@@ -10,7 +10,7 @@
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! $typenow )
wp_die( __( 'Invalid post type' ) );
wp_die( __( 'Invalid post type.' ) );
if ( ! in_array( $typenow, get_post_types( array( 'show_ui' => true ) ) ) ) {
wp_die( __( 'Sorry, you are not allowed to edit posts in this post type.' ) );
@@ -32,7 +32,7 @@ $post_type = $typenow;
$post_type_object = get_post_type_object( $post_type );
if ( ! $post_type_object )
wp_die( __( 'Invalid post type' ) );
wp_die( __( 'Invalid post type.' ) );
if ( ! current_user_can( $post_type_object->cap->edit_posts ) ) {
wp_die(