Changeset 18812
- Timestamp:
- 09/29/2011 06:12:51 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/user.php
r18632 r18812 120 120 $user->admin_color = isset( $_POST['admin_color'] ) ? sanitize_text_field( $_POST['admin_color'] ) : 'fresh'; 121 121 $user->show_admin_bar_front = isset( $_POST['admin_bar_front'] ) ? 'true' : 'false'; 122 $user->show_admin_bar_admin = isset( $_POST['admin_bar_admin'] ) ? 'true' : 'false';123 122 } 124 123 -
trunk/wp-includes/user.php
r18741 r18812 1331 1331 $show_admin_bar_front = 'true'; 1332 1332 1333 if ( empty($show_admin_bar_admin) )1334 $show_admin_bar_admin = 'true';1335 1336 1333 $user_nicename_check = $wpdb->get_var( $wpdb->prepare("SELECT ID FROM $wpdb->users WHERE user_nicename = %s AND user_login != %s LIMIT 1" , $user_nicename, $user_login)); 1337 1334 … … 1366 1363 update_user_meta( $user_id, 'use_ssl', $use_ssl ); 1367 1364 update_user_meta( $user_id, 'show_admin_bar_front', $show_admin_bar_front ); 1368 update_user_meta( $user_id, 'show_admin_bar_admin', $show_admin_bar_admin );1369 1365 1370 1366 $user = new WP_User($user_id);
Note: See TracChangeset
for help on using the changeset viewer.