mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Batch edit: allow removal of selected posts, prevent page parent lock.
git-svn-id: https://develop.svn.wordpress.org/trunk@9036 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -426,6 +426,7 @@ function setup_userdata($user_id = '') {
|
||||
* <li>order - Default is 'ASC'. Can also be 'DESC'.</li>
|
||||
* <li>include - User IDs to include.</li>
|
||||
* <li>exclude - User IDs to exclude.</li>
|
||||
* <li>multi - Default is 'false'. Whether to skip the ID attribute on the 'select' element.</li>
|
||||
* <li>show - Default is 'display_name'. User table column to display.</li>
|
||||
* <li>echo - Default is '1'. Whether to display or retrieve content.</li>
|
||||
* <li>selected - Which User ID is selected.</li>
|
||||
@@ -444,7 +445,7 @@ function wp_dropdown_users( $args = '' ) {
|
||||
$defaults = array(
|
||||
'show_option_all' => '', 'show_option_none' => '',
|
||||
'orderby' => 'display_name', 'order' => 'ASC',
|
||||
'include' => '', 'exclude' => '',
|
||||
'include' => '', 'exclude' => '', 'multi' => 0,
|
||||
'show' => 'display_name', 'echo' => 1,
|
||||
'selected' => 0, 'name' => 'user', 'class' => ''
|
||||
);
|
||||
@@ -479,7 +480,9 @@ function wp_dropdown_users( $args = '' ) {
|
||||
|
||||
$output = '';
|
||||
if ( !empty($users) ) {
|
||||
$output = "<select name='$name' id='$name' class='$class'>\n";
|
||||
$id = $multi ? "" : "id='$name'";
|
||||
|
||||
$output = "<select name='$name' $id class='$class'>\n";
|
||||
|
||||
if ( $show_option_all )
|
||||
$output .= "\t<option value='0'>$show_option_all</option>\n";
|
||||
|
||||
Reference in New Issue
Block a user