Changeset 1069868
- Timestamp:
- 01/17/2015 05:47:21 AM (11 years ago)
- Location:
- userswitcher
- Files:
-
- 2 edited
-
switch.js (modified) (1 diff)
-
userSwitcher.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
userswitcher/switch.js
r1069862 r1069868 13 13 14 14 var setUp = function(){ 15 var btn = $(' li#wp-admin-bar-user-switcher div:eq(0)'),15 var btn = $('.switcher-icon'), 16 16 template = $('#switcher-template').html(), form, _class = 'switch-fixed'; 17 17 18 18 if( is_added ) return; 19 19 -
userswitcher/userSwitcher.php
r1069862 r1069868 37 37 $this->current_switcher = get_current_user_id(); 38 38 $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(); 40 41 41 42 if( !empty($this->user_switcher) && $this->current_switcher != $this->user_switcher ){ … … 55 56 $current_user->roles = $current_user->caps = array( $this->user_switcher ); 56 57 } 57 $this->is_switching = true;58 58 59 59 if( $pagenow == 'options.php' && isset($_REQUEST['user_switcher']) ) {
Note: See TracChangeset
for help on using the changeset viewer.