Changeset 28564 for trunk/src/wp-includes/user.php
- Timestamp:
- 05/23/2014 08:46:18 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user.php
r28528 r28564 1286 1286 'show' => 'display_name', 'echo' => 1, 1287 1287 'selected' => 0, 'name' => 'user', 'class' => '', 'id' => '', 1288 'blog_id' => $GLOBALS['blog_id'], 'who' => '', 'include_selected' => false 1288 'blog_id' => $GLOBALS['blog_id'], 'who' => '', 'include_selected' => false, 1289 'option_none_value' => -1 1289 1290 ); 1290 1291 … … 1295 1296 $show_option_all = $r['show_option_all']; 1296 1297 $show_option_none = $r['show_option_none']; 1298 $option_none_value = $r['option_none_value']; 1297 1299 1298 1300 $query_args = wp_array_slice_assoc( $r, array( 'blog_id', 'include', 'exclude', 'orderby', 'order', 'who' ) ); … … 1315 1317 1316 1318 if ( $show_option_none ) { 1317 $_selected = selected( -1, $r['selected'], false );1318 $output .= "\t<option value=' -1'$_selected>$show_option_none</option>\n";1319 $_selected = selected( $option_none_value, $r['selected'], false ); 1320 $output .= "\t<option value='" . esc_attr( $option_none_value ) . "'$_selected>$show_option_none</option>\n"; 1319 1321 } 1320 1322
Note: See TracChangeset
for help on using the changeset viewer.