mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-31 15:59:44 +01:00
When editing posts, don't automatically change the post author to the current user. http://mosquito.wordpress.org/view.php?id=911 Props: dwc
git-svn-id: http://svn.automattic.com/wordpress/trunk@2528 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7b1a2648b3
commit
af7a390c59
@ -157,7 +157,7 @@ if ('publish' != $post_status || 0 == $post_ID) {
|
||||
<select name="post_author_override" id="post_author_override">
|
||||
<?php
|
||||
foreach ($users as $o) :
|
||||
if ( $post_author == $o->ID ) $selected = 'selected="selected"';
|
||||
if ( $post_author == $o->ID || ( empty($post_ID) && $user_ID == $o->ID ) ) $selected = 'selected="selected"';
|
||||
else $selected = '';
|
||||
echo "<option value='$o->ID' $selected>$o->user_login ($o->user_firstname $o->user_lastname)</option>";
|
||||
endforeach;
|
||||
|
Loading…
Reference in New Issue
Block a user