Plugin Directory

Changeset 1069868


Ignore:
Timestamp:
01/17/2015 05:47:21 AM (11 years ago)
Author:
irenem
Message:

Update UI...

Location:
userswitcher
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • userswitcher/switch.js

    r1069862 r1069868  
    1313   
    1414    var setUp = function(){
    15         var btn = $('li#wp-admin-bar-user-switcher div:eq(0)'),
     15        var btn = $('.switcher-icon'),
    1616            template = $('#switcher-template').html(), form, _class = 'switch-fixed';
    17        
     17     
    1818        if( is_added ) return;
    1919       
  • userswitcher/userSwitcher.php

    r1069862 r1069868  
    3737                        $this->current_switcher = get_current_user_id();
    3838                        $switchers = (array) get_option( 'user_switcher' );
    39                         $this->user_switcher = $switchers[$this->current_switcher];                       
     39                        $this->user_switcher = $switchers[$this->current_switcher];
     40                        $this->is_switching = is_super_admin();
    4041
    4142                        if( !empty($this->user_switcher)  && $this->current_switcher != $this->user_switcher ){
     
    5556                                        $current_user->roles = $current_user->caps = array( $this->user_switcher );
    5657                                }
    57                                 $this->is_switching = true;
    5858                               
    5959                                if( $pagenow == 'options.php' && isset($_REQUEST['user_switcher']) ) {
Note: See TracChangeset for help on using the changeset viewer.