Make WordPress Core

Changeset 2528


Ignore:
Timestamp:
04/13/2005 04:30:09 PM (21 years ago)
Author:
ryan
Message:

When editing posts, don't automatically change the post author to the current user. http://mosquito.wordpress.org/view.php?id=911 Props: dwc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r2441 r2528  
    158158        <?php
    159159        foreach ($users as $o) :
    160             if ( $post_author == $o->ID ) $selected = 'selected="selected"';
     160            if ( $post_author == $o->ID || ( empty($post_ID) && $user_ID == $o->ID ) ) $selected = 'selected="selected"';
    161161            else $selected = '';
    162162            echo "<option value='$o->ID' $selected>$o->user_login ($o->user_firstname $o->user_lastname)</option>";
Note: See TracChangeset for help on using the changeset viewer.