Make WordPress Core


Ignore:
Timestamp:
05/29/2007 04:28:10 AM (18 years ago)
Author:
ryan
Message:

Post and page management filter additions from mdawaffe. see #3945

File:
1 edited

Legend:

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

    r5543 r5587  
    117117
    118118<?php
    119 $authors = get_editable_authors( $current_user->id ); // TODO: ROLE SYSTEM
     119$authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM
    120120if ( $authors && count( $authors ) > 1 ) :
    121121?>
     
    123123<h3 class="dbx-handle"><?php _e('Post Author'); ?></h3>
    124124<div class="dbx-content">
    125 <select name="post_author_override" id="post_author_override">
    126 <?php
    127 foreach ($authors as $o) :
    128 $o = get_userdata( $o->ID );
    129 if ( $post->post_author == $o->ID || ( empty($post_ID) && $user_ID == $o->ID ) ) $selected = 'selected="selected"';
    130 else $selected = '';
    131 echo "<option value='" . (int) $o->ID . "' $selected>" . wp_specialchars( $o->display_name ) . "</option>";
    132 endforeach;
    133 ?>
    134 </select>
     125<?php wp_dropdown_users( array('include' => $authors, 'name' => 'post_author_override', 'selected' => empty($post_ID) ? $user_ID : $post->post_author) ); ?>
    135126</div>
    136127</fieldset>
Note: See TracChangeset for help on using the changeset viewer.