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:
@@ -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
|
||||
) );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user