Make WordPress Core


Ignore:
Timestamp:
12/20/2010 05:25:39 PM (14 years ago)
Author:
ryan
Message:

Add 'who' arg to wp_dropdown_users() and get_users(). Add' hide_if_only_one_author' argument to get_users(). Query only authors (user level greater than 0) when who => author is passed. Query only authors for author meta box and quick edit dropdowns. Props scribu. fixes #15871

File:
1 edited

Legend:

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

    r17062 r17088  
    531531function post_author_meta_box($post) {
    532532    global $user_ID;
    533 
    534533?>
    535534<label class="screen-reader-text" for="post_author_override"><?php _e('Author'); ?></label>
    536535<?php
    537536    wp_dropdown_users( array(
     537        'who' => 'authors',
    538538        'name' => 'post_author_override',
    539539        'selected' => empty($post->ID) ? $user_ID : $post->post_author
Note: See TracChangeset for help on using the changeset viewer.