X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/022dfbbbe3215917d84708eb09acca93b21ae9e0..refs/tags/wordpress-2.8.3-scripts:/wp-admin/user-edit.php diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index 1d597587..6736e1c8 100644 --- a/wp-admin/user-edit.php +++ b/wp-admin/user-edit.php @@ -1,30 +1,64 @@ ID; + } else { + wp_die(__('Invalid user ID.')); + } +} elseif ( !get_userdata($user_id) ) { + wp_die( __('Invalid user ID.') ); +} + +$all_post_caps = array('posts', 'pages'); +$user_can_edit = false; +foreach ( $all_post_caps as $post_cap ) + $user_can_edit |= current_user_can("edit_$post_cap"); + +/** + * Optional SSL preference that can be turned on by hooking to the 'personal_options' action. + * + * @since 2.7.0 + * + * @param object $user User data object + */ +function use_ssl_preference($user) { +?> + + + + +

+ +

+
- +
-
-

+
+ +

-
+ + + +

-
- -

- -

- -

+

-

- -

- -

+ -first_name ) && !empty( $profileuser->last_name ) ) : ?> - - - -

-
- -
- + 1 ) : ?> + + +
+ $color_info ): ?> +
/> + + + colors as $html_color ): ?> + + + +
 
+ + +
+ +
+ + + + + More information'); ?> + + + + -

+

-

+ + + + + -

+ + + + + + + + + + + + + + + + + + + + + + + + +
-

+// print the full list of roles with the primary one selected. +wp_dropdown_roles($user_role); -

-

- -
-
- -

-

-
+// print the 'no role' option. Make it selected if the user has no role yet. +if ( $user_role ) + echo ''; +else + echo ''; +?> +
+ +
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +

+ + + + + + -
- -

-

-

-
+ + + + +

+

+
+
+

+
- + -
- - caps) > count($profileuser->roles)): - ?> - - - +
caps) > count($profileuser->roles) && apply_filters('additional_capabilities_display', true, $profileuser)): ?> +
+ + + + - - -
caps as $cap => $value) { if(!$wp_roles->is_role($cap)) { @@ -194,16 +330,15 @@ if ( $show_password_fields ) : } echo $output; ?>
+
+ +

- - -

+ + +