Changeset 27310
- Timestamp:
- 02/27/2014 10:21:13 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/network/site-users.php
r26518 r27310 52 52 53 53 switch_to_blog( $id ); 54 55 $editblog_roles = $wp_roles->roles;56 57 $default_role = get_option( 'default_role' );58 54 59 55 $action = $wp_list_table->current_action(); … … 271 267 <th scope="row"><?php _e( 'Role' ); ?></th> 272 268 <td><select name="new_role" id="new_role_0"> 273 <?php 274 reset( $editblog_roles ); 275 foreach ( $editblog_roles as $role => $role_assoc ) { 276 $name = translate_user_role( $role_assoc['name'] ); 277 echo '<option ' . selected( $default_role, $role, false ) . ' value="' . esc_attr( $role ) . '">' . esc_html( $name ) . '</option>'; 278 } 279 ?> 269 <?php wp_dropdown_roles( get_option( 'default_role' ) ); ?> 280 270 </select></td> 281 271 </tr> … … 310 300 <th scope="row"><?php _e( 'Role' ); ?></th> 311 301 <td><select name="new_role" id="new_role_0"> 312 <?php 313 reset( $editblog_roles ); 314 foreach ( $editblog_roles as $role => $role_assoc ) { 315 $name = translate_user_role( $role_assoc['name'] ); 316 echo '<option ' . selected( $default_role, $role, false ) . ' value="' . esc_attr( $role ) . '">' . esc_html( $name ) . '</option>'; 317 } 318 ?> 302 <?php wp_dropdown_roles( get_option( 'default_role' ) ); ?> 319 303 </select></td> 320 304 </tr>
Note: See TracChangeset
for help on using the changeset viewer.