Changeset 8701 for trunk/wp-admin/user-edit.php
- Timestamp:
- 08/21/2008 05:40:38 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/user-edit.php
r8656 r8701 100 100 $user_id = (int) $user_id; 101 101 102 if ( !$user_id ) 102 if ( !$user_id ) { 103 103 if ( $is_profile_page ) { 104 104 $current_user = wp_get_current_user(); … … 107 107 wp_die(__('Invalid user ID.')); 108 108 } 109 } 110 111 // Optional SSL preference that can be turned on by hooking to the 'personal_options' action 112 function use_ssl_preference($user) { 113 ?> 114 <tr> 115 <th scope="row"><?php _e('Use https')?></th> 116 <td><label for="use_ssl"><input name="use_ssl" type="checkbox" id="use_ssl" value="1" <?php checked('1', $user->use_ssl); ?> /> <?php _e('Always use https when visiting the admin'); ?></label></td> 117 </tr> 118 <?php 119 } 109 120 110 121 switch ($action) { … … 130 141 $errors = edit_user($user_id); 131 142 132 if ( !is_wp_error( $errors ) ) {143 if ( !is_wp_error( $errors ) ) { 133 144 $redirect = ($is_profile_page? "profile.php?" : "user-edit.php?user_id=$user_id&"). "updated=true"; 134 145 $redirect = add_query_arg('wp_http_referer', urlencode($wp_http_referer), $redirect); … … 141 152 142 153 if ( !current_user_can('edit_user', $user_id) ) 143 154 wp_die(__('You do not have permission to edit this user.')); 144 155 145 156 include ('admin-header.php'); … … 210 221 </fieldset></td> 211 222 </tr> 212 <?php endif; ?> 223 <?php 224 endif; 225 do_action('personal_options', $profileuser); 226 ?> 213 227 </table> 214 228 <?php 215 if ( $is_profile_page ) { 216 do_action('profile_personal_options'); 217 } 229 if ( $is_profile_page ) 230 do_action('profile_personal_options', $profileuser); 218 231 ?> 219 232
Note: See TracChangeset
for help on using the changeset viewer.