WordPress.org

Make WordPress Core

Ticket #18645: 18645-2.diff

File 18645-2.diff, 640 bytes (added by jkudish, 7 years ago)

Patch which filters the whole array

  • wp-admin/includes/meta-boxes.php

     
    527527?>
    528528<label class="screen-reader-text" for="post_author_override"><?php _e('Author'); ?></label>
    529529<?php
    530         wp_dropdown_users( array(
     530        $args = array(
    531531                'who' => 'authors',
    532532                'name' => 'post_author_override',
    533533                'selected' => empty($post->ID) ? $user_ID : $post->post_author,
    534534                'include_selected' => true
    535         ) );
     535        );
     536        wp_dropdown_users( apply_filters_ref_array('post_author_meta_box', $args) );
    536537}
    537538
    538539