Changeset 5587 for trunk/wp-admin/edit-form-advanced.php
- Timestamp:
- 05/29/2007 04:28:10 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r5543 r5587 117 117 118 118 <?php 119 $authors = get_editable_ authors( $current_user->id ); // TODO: ROLE SYSTEM119 $authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM 120 120 if ( $authors && count( $authors ) > 1 ) : 121 121 ?> … … 123 123 <h3 class="dbx-handle"><?php _e('Post Author'); ?></h3> 124 124 <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) ); ?> 135 126 </div> 136 127 </fieldset>
Note: See TracChangeset
for help on using the changeset viewer.