Changeset 61687 for trunk/src/wp-admin/includes/template.php
- Timestamp:
- 02/19/2026 09:42:59 AM (3 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/template.php
r61681 r61687 968 968 * 969 969 * @since 2.1.0 970 * 971 * @param string $selected Slug for the role that should be already selected. 972 */ 973 function wp_dropdown_roles( $selected = '' ) { 970 * @since 7.0.0 Added $editable_roles parameter. 971 * 972 * @param string $selected Slug for the role that should be already selected. 973 * @param array $editable_roles Array of roles to include in the dropdown. Defaults to all 974 * roles the current user is allowed to edit. 975 */ 976 function wp_dropdown_roles( $selected = '', $editable_roles = null ) { 974 977 $r = ''; 975 978 976 $editable_roles = array_reverse( get_editable_roles() ); 979 if ( null === $editable_roles ) { 980 $editable_roles = array_reverse( get_editable_roles() ); 981 } 977 982 978 983 foreach ( $editable_roles as $role => $details ) {
Note: See TracChangeset
for help on using the changeset viewer.