Make WordPress Core

Changeset 18812


Ignore:
Timestamp:
09/29/2011 06:12:51 AM (13 years ago)
Author:
nacin
Message:

Remove remnants of show_admin_bar_admin. see #18811, see #18197.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/user.php

    r18632 r18812  
    120120        $user->admin_color = isset( $_POST['admin_color'] ) ? sanitize_text_field( $_POST['admin_color'] ) : 'fresh';
    121121        $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';
    123122    }
    124123
  • trunk/wp-includes/user.php

    r18741 r18812  
    13311331        $show_admin_bar_front = 'true';
    13321332
    1333     if ( empty($show_admin_bar_admin) )
    1334         $show_admin_bar_admin = 'true';
    1335 
    13361333    $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));
    13371334
     
    13661363    update_user_meta( $user_id, 'use_ssl', $use_ssl );
    13671364    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 );
    13691365
    13701366    $user = new WP_User($user_id);
Note: See TracChangeset for help on using the changeset viewer.