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:
Mark Jaquith
2013-04-25 02:44:23 +00:00
parent 5c78df14f8
commit 9d531ae545
2 changed files with 11 additions and 6 deletions
+4 -1
View File
@@ -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 = '';
}