diff --git a/template.php b/template-new.php
index 5b659f0..28dce49 100755
old
|
new
|
function parent_dropdown( $default = 0, $parent = 0, $level = 0, $post = null ) |
827 | 827 | * @param string $selected Slug for the role that should be already selected. |
828 | 828 | * @param array $roles_to_exclude Array of roles to exclude in dropdown. |
829 | 829 | */ |
830 | | function wp_dropdown_roles( $selected = '' ) { |
| 830 | function wp_dropdown_roles( $selected = '', $roles_to_exclude = array() ) { |
831 | 831 | $r = ''; |
832 | 832 | |
833 | 833 | $editable_roles = array_reverse( get_editable_roles() ); |
834 | 834 | |
| 835 | if( ! empty( $roles_to_exclude ) ) { |
| 836 | foreach( $roles_to_exclude as $role_to_exclude ) { |
| 837 | unset( $editable_roles[$role_to_exclude] ); |
| 838 | } |
| 839 | } |
| 840 | |
835 | 841 | foreach ( $editable_roles as $role => $details ) { |
836 | 842 | $name = translate_user_role($details['name'] ); |
837 | 843 | |