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: https://develop.svn.wordpress.org/trunk@2528 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-04-13 16:30:09 +00:00
parent 4d31612412
commit 7f2c7afd0f
1 changed files with 1 additions and 1 deletions

View File

@ -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;