mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
Fix notice in bulk edit posts, props dd32, fixes #11184
git-svn-id: http://svn.automattic.com/wordpress/trunk@12285 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c3f7df6b24
commit
e0f5abc2d3
@ -1060,11 +1060,11 @@ function inline_edit_row( $type ) {
|
|||||||
<?php endif; // $bulk
|
<?php endif; // $bulk
|
||||||
|
|
||||||
$authors = get_editable_user_ids( $current_user->id, true, $type ); // TODO: ROLE SYSTEM
|
$authors = get_editable_user_ids( $current_user->id, true, $type ); // TODO: ROLE SYSTEM
|
||||||
|
$authors_dropdown = '';
|
||||||
if ( $authors && count( $authors ) > 1 ) :
|
if ( $authors && count( $authors ) > 1 ) :
|
||||||
$users_opt = array('include' => $authors, 'name' => 'post_author', 'class'=> 'authors', 'multi' => 1, 'echo' => 0);
|
$users_opt = array('include' => $authors, 'name' => 'post_author', 'class'=> 'authors', 'multi' => 1, 'echo' => 0);
|
||||||
if ( $bulk )
|
if ( $bulk )
|
||||||
$users_opt['show_option_none'] = __('- No Change -');
|
$users_opt['show_option_none'] = __('- No Change -');
|
||||||
|
|
||||||
$authors_dropdown = '<label>';
|
$authors_dropdown = '<label>';
|
||||||
$authors_dropdown .= '<span class="title">' . __( 'Author' ) . '</span>';
|
$authors_dropdown .= '<span class="title">' . __( 'Author' ) . '</span>';
|
||||||
$authors_dropdown .= wp_dropdown_users( $users_opt );
|
$authors_dropdown .= wp_dropdown_users( $users_opt );
|
||||||
|
Loading…
Reference in New Issue
Block a user