WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/02/06 00:31:26 (12 years ago)
Author:
ryan
Message:

AJAXify user addition. Props mdawaffe. fixes #2624

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-general.php

    r3676 r3677  
    5555<th scope="row"><?php _e('New User Default Role:') ?></th>  
    5656<td><label for="default_role">  
    57 <select name="default_role" id="default_role"><?php  
    58 foreach($wp_roles->role_names as $role => $name) { 
    59     $selected = (get_settings('default_role') == $role) ? 'selected="selected"' : ''; 
    60     echo "<option {$selected} value=\"{$role}\">{$name}</option>"; 
    61 } 
    62 ?></select></label> 
     57<select name="default_role" id="default_role"><?php wp_dropdown_roles( get_settings('default_role') ); ?></select></label> 
    6358</td>  
    6459</tr>  
Note: See TracChangeset for help on using the changeset viewer.