mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
First pass at removing Post Format UI.
see #24452. fixes #24455. git-svn-id: https://develop.svn.wordpress.org/trunk@24388 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2676,8 +2676,7 @@ function wp_insert_post($postarr, $wp_error = false) {
|
||||
}
|
||||
|
||||
$maybe_empty = ! $post_content && ! $post_title && ! $post_excerpt && post_type_supports( $post_type, 'editor' )
|
||||
&& post_type_supports( $post_type, 'title' ) && post_type_supports( $post_type, 'excerpt' )
|
||||
&& ! in_array( get_post_format( $post_ID ), array( 'audio', 'video', 'quote', 'image' ) );
|
||||
&& post_type_supports( $post_type, 'title' ) && post_type_supports( $post_type, 'excerpt' );
|
||||
|
||||
if ( apply_filters( 'wp_insert_post_empty_content', $maybe_empty, $postarr ) ) {
|
||||
if ( $wp_error )
|
||||
|
||||
Reference in New Issue
Block a user