WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/27/2010 01:07:21 AM (9 years ago)
Author:
scribu
Message:

Deprecated get_editable_user_ids() altogether, along with similar, unused functions. See #14572

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/meta-boxes.php

    r15541 r15542  
    506506 */
    507507function post_author_meta_box($post) {
    508     global $user_ID, $_editable_user_ids;
    509 
    510 ?>
    511 <label class="screen-reader-text" for="post_author_override"><?php _e('Author'); ?></label><?php wp_dropdown_users( array('include' => $_editable_user_ids, 'name' => 'post_author_override', 'selected' => empty($post->ID) ? $user_ID : $post->post_author) ); ?>
    512 <?php
     508    global $user_ID;
     509
     510?>
     511<label class="screen-reader-text" for="post_author_override"><?php _e('Author'); ?></label>
     512<?php
     513    wp_dropdown_users( array(
     514        'name' => 'post_author_override',
     515        'selected' => empty($post->ID) ? $user_ID : $post->post_author
     516    ) );
    513517}
    514518
Note: See TracChangeset for help on using the changeset viewer.