mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00:00
post-new.php?format=X will pre-fill the format, to allow for Post-Format-chosen-first editor jump-starting.
props kovshenin, wonderboymusic. fixes #24116. git-svn-id: https://develop.svn.wordpress.org/trunk@24081 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -139,7 +139,10 @@ if ( post_type_supports( $post_type, 'post-formats' ) && apply_filters( 'enable_
|
||||
|
||||
if ( ! $post_format ) {
|
||||
$post_format = 'standard';
|
||||
if ( 'auto-draft' == $post->post_status )
|
||||
|
||||
if ( ! empty( $_REQUEST['format'] ) && in_array( $_REQUEST['format'], get_post_format_slugs() ) )
|
||||
$post_format = $_REQUEST['format'];
|
||||
elseif ( 'auto-draft' == $post->post_status )
|
||||
$post_format_set_class = '';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user