Merge similar error strings for invalid data.
props pavelevap. fixes #32329. Built from https://develop.svn.wordpress.org/trunk@32477 git-svn-id: http://core.svn.wordpress.org/trunk@32447 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -65,7 +65,7 @@ function set_post_format( $post, $format ) {
|
||||
$post = get_post( $post );
|
||||
|
||||
if ( empty( $post ) )
|
||||
return new WP_Error( 'invalid_post', __( 'Invalid post' ) );
|
||||
return new WP_Error( 'invalid_post', __( 'Invalid post.' ) );
|
||||
|
||||
if ( ! empty( $format ) ) {
|
||||
$format = sanitize_key( $format );
|
||||
|
||||
Reference in New Issue
Block a user