WordPress.org

Make WordPress Core

Ticket #18645: 18645-3.diff

File 18645-3.diff, 655 bytes (added by jkudish, 3 years ago)

removed _ref_array() and added (array) cast.

  • 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        $args = (array) apply_filters('post_author_meta_box', $args); 
     537        wp_dropdown_users( $args ); 
    536538} 
    537539 
    538540