Version Description
- Fixed: How to get the current user role.
Download this release
Release Info
Developer | gqevu6bsiz |
Plugin | WP Admin UI Customize |
Version | 1.5.2.4 |
Comparing to | |
See all releases |
Code changes from version 1.5.2.3 to 1.5.2.4
- readme.txt +5 -2
- wp-admin-ui-customize.php +8 -6
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== WP Admin UI Customize ===
|
2 |
Contributors: gqevu6bsiz
|
3 |
-
Donate link: http://gqevu6bsiz.chicappa.jp/please-donation/?utm_source=wporg&utm_medium=donate&utm_content=wauc&utm_campaign=
|
4 |
Tags: admin, post, posts, page, option, sitemenu, menu, custom, customize, dashboard, admin_bar, multisite, network, metabox
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.1
|
7 |
-
Stable tag: 1.5.2.
|
8 |
License: GPL2
|
9 |
|
10 |
Customize the management screen UI.
|
@@ -50,6 +50,9 @@ These to Customization is possible.
|
|
50 |
|
51 |
== Changelog ==
|
52 |
|
|
|
|
|
|
|
53 |
= 1.5.2.3 =
|
54 |
* Fixed: Priority change of loading meta boxes on Dashboard.
|
55 |
* Fixed: Customize of Appearance.
|
1 |
=== WP Admin UI Customize ===
|
2 |
Contributors: gqevu6bsiz
|
3 |
+
Donate link: http://gqevu6bsiz.chicappa.jp/please-donation/?utm_source=wporg&utm_medium=donate&utm_content=wauc&utm_campaign=1_5_2_4
|
4 |
Tags: admin, post, posts, page, option, sitemenu, menu, custom, customize, dashboard, admin_bar, multisite, network, metabox
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.1
|
7 |
+
Stable tag: 1.5.2.4
|
8 |
License: GPL2
|
9 |
|
10 |
Customize the management screen UI.
|
50 |
|
51 |
== Changelog ==
|
52 |
|
53 |
+
= 1.5.2.4 =
|
54 |
+
* Fixed: How to get the current user role.
|
55 |
+
|
56 |
= 1.5.2.3 =
|
57 |
* Fixed: Priority change of loading meta boxes on Dashboard.
|
58 |
* Fixed: Customize of Appearance.
|
wp-admin-ui-customize.php
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
/*
|
3 |
Plugin Name: WP Admin UI Customize
|
4 |
Description: An excellent plugin to customize the management screens.
|
5 |
-
Plugin URI: http://wpadminuicustomize.com/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=
|
6 |
-
Version: 1.5.2.
|
7 |
Author: gqevu6bsiz
|
8 |
-
Author URI: http://gqevu6bsiz.chicappa.jp/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=
|
9 |
Text Domain: wauc
|
10 |
Domain Path: /languages
|
11 |
*/
|
@@ -58,7 +58,7 @@ class WP_Admin_UI_Customize
|
|
58 |
|
59 |
|
60 |
function __construct() {
|
61 |
-
$this->Ver = '1.5.2.
|
62 |
$this->Name = 'WP Admin UI Customize';
|
63 |
$this->Dir = plugin_dir_path( __FILE__ );
|
64 |
$this->Url = plugin_dir_url( __FILE__ );
|
@@ -1149,7 +1149,8 @@ class WP_Admin_UI_Customize
|
|
1149 |
$UserRole = '';
|
1150 |
$User = wp_get_current_user();
|
1151 |
if( !empty( $User->roles ) ) {
|
1152 |
-
|
|
|
1153 |
$UserRole = $role;
|
1154 |
break;
|
1155 |
}
|
@@ -1159,7 +1160,8 @@ class WP_Admin_UI_Customize
|
|
1159 |
switch_to_blog( $current_site->blog_id );
|
1160 |
$User = wp_get_current_user();
|
1161 |
if( !empty( $User->roles ) ) {
|
1162 |
-
|
|
|
1163 |
$UserRole = $role;
|
1164 |
break;
|
1165 |
}
|
2 |
/*
|
3 |
Plugin Name: WP Admin UI Customize
|
4 |
Description: An excellent plugin to customize the management screens.
|
5 |
+
Plugin URI: http://wpadminuicustomize.com/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_5_2_4
|
6 |
+
Version: 1.5.2.4
|
7 |
Author: gqevu6bsiz
|
8 |
+
Author URI: http://gqevu6bsiz.chicappa.jp/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_5_2_4
|
9 |
Text Domain: wauc
|
10 |
Domain Path: /languages
|
11 |
*/
|
58 |
|
59 |
|
60 |
function __construct() {
|
61 |
+
$this->Ver = '1.5.2.4';
|
62 |
$this->Name = 'WP Admin UI Customize';
|
63 |
$this->Dir = plugin_dir_path( __FILE__ );
|
64 |
$this->Url = plugin_dir_url( __FILE__ );
|
1149 |
$UserRole = '';
|
1150 |
$User = wp_get_current_user();
|
1151 |
if( !empty( $User->roles ) ) {
|
1152 |
+
$current_roles = $User->roles;
|
1153 |
+
foreach( $current_roles as $role ) {
|
1154 |
$UserRole = $role;
|
1155 |
break;
|
1156 |
}
|
1160 |
switch_to_blog( $current_site->blog_id );
|
1161 |
$User = wp_get_current_user();
|
1162 |
if( !empty( $User->roles ) ) {
|
1163 |
+
$current_roles = $User->roles;
|
1164 |
+
foreach( $current_roles as $role ) {
|
1165 |
$UserRole = $role;
|
1166 |
break;
|
1167 |
}
|