Introduce include_selected arg for wp_dropdown_users(). Add current author to dropdown in post_author_meta_box(). fixes #16045

git-svn-id: http://svn.automattic.com/wordpress/trunk@17198 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2011-01-01 01:52:03 +00:00
parent e32a14de12
commit a6e8ff128f
2 changed files with 14 additions and 2 deletions
+2 -1
View File
@@ -530,7 +530,8 @@ function post_author_meta_box($post) {
wp_dropdown_users( array(
'who' => 'authors',
'name' => 'post_author_override',
'selected' => empty($post->ID) ? $user_ID : $post->post_author
'selected' => empty($post->ID) ? $user_ID : $post->post_author,
'include_selected' => true
) );
}