WordPress.org

Make WordPress Core

Changeset 6049


Ignore:
Timestamp:
09/06/07 04:46:56 (7 years ago)
Author:
markjaquith
Message:

Always put the author of the post in the authors dropdown, even if they have since been demoted to a role without post-saving capabilities. fixes #4458

File:
1 edited

Legend:

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

    r6026 r6049  
    120120<?php 
    121121$authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM 
     122if ( $post->post_author && !in_array($post->post_author, $authors) ) 
     123    $authors[] = $post->post_author; 
    122124if ( $authors && count( $authors ) > 1 ) : 
    123125?> 
Note: See TracChangeset for help on using the changeset viewer.