mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +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:
@@ -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