mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 01:00:04 +00:00
Merge similar error strings for invalid data.
props pavelevap. fixes #32329. git-svn-id: https://develop.svn.wordpress.org/trunk@32477 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -260,7 +260,7 @@ function _wp_put_post_revision( $post = null, $autosave = false ) {
|
||||
$post = get_post($post, ARRAY_A);
|
||||
|
||||
if ( ! $post || empty($post['ID']) )
|
||||
return new WP_Error( 'invalid_post', __( 'Invalid post ID' ) );
|
||||
return new WP_Error( 'invalid_post', __( 'Invalid post ID.' ) );
|
||||
|
||||
if ( isset($post['post_type']) && 'revision' == $post['post_type'] )
|
||||
return new WP_Error( 'post_type', __( 'Cannot create a revision of a revision' ) );
|
||||
|
||||
Reference in New Issue
Block a user