Version Description
- Changed the action timing of the side menu apply.
- Fixed bug : Can not be acquired rights group.
Download this release
Release Info
Developer | gqevu6bsiz |
Plugin | WP Admin UI Customize |
Version | 1.3.5 |
Comparing to | |
See all releases |
Code changes from version 1.3.4 to 1.3.5
- readme.txt +7 -3
- wp-admin-ui-customize.php +25 -17
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
|
5 |
Requires at least: 3.4.2
|
6 |
-
Tested up to: 3.6
|
7 |
-
Stable tag: 1.3.
|
8 |
License: GPL2
|
9 |
|
10 |
Customize the management screen UI.
|
@@ -49,6 +49,10 @@ These to Customization is possible.
|
|
49 |
|
50 |
== Changelog ==
|
51 |
|
|
|
|
|
|
|
|
|
52 |
= 1.3.4 =
|
53 |
* Only administrator has to perform of the Meta boxes read.
|
54 |
|
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_3_5
|
4 |
Tags: admin, post, posts, page, option, sitemenu, menu, custom, customize, dashboard, admin_bar
|
5 |
Requires at least: 3.4.2
|
6 |
+
Tested up to: 3.6-beta3
|
7 |
+
Stable tag: 1.3.5
|
8 |
License: GPL2
|
9 |
|
10 |
Customize the management screen UI.
|
49 |
|
50 |
== Changelog ==
|
51 |
|
52 |
+
= 1.3.5 =
|
53 |
+
* Changed the action timing of the side menu apply.
|
54 |
+
* Fixed bug : Can not be acquired rights group.
|
55 |
+
|
56 |
= 1.3.4 =
|
57 |
* Only administrator has to perform of the Meta boxes read.
|
58 |
|
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.3.
|
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 |
*/
|
@@ -48,7 +48,7 @@ class WP_Admin_UI_Customize
|
|
48 |
|
49 |
|
50 |
function __construct() {
|
51 |
-
$this->Ver = '1.3.
|
52 |
$this->Name = 'WP Admin UI Customize';
|
53 |
$this->Dir = WP_PLUGIN_URL . '/' . dirname( plugin_basename( __FILE__ ) ) . '/';
|
54 |
$this->Site = 'http://wpadminuicustomize.com/';
|
@@ -673,6 +673,15 @@ class WP_Admin_UI_Customize
|
|
673 |
return $str;
|
674 |
}
|
675 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
676 |
|
677 |
|
678 |
|
@@ -975,13 +984,9 @@ class WP_Admin_UI_Customize
|
|
975 |
if( !empty( $SettingRole ) ) {
|
976 |
unset($SettingRole["UPFN"]);
|
977 |
|
978 |
-
$UserRole =
|
979 |
-
$User = wp_get_current_user();
|
980 |
-
if( !empty( $User->roles[0] ) ) {
|
981 |
-
$UserRole = $User->roles[0];
|
982 |
-
}
|
983 |
|
984 |
-
if( !is_network_admin() ) {
|
985 |
if( array_key_exists( $UserRole , $SettingRole ) ) {
|
986 |
add_action( 'wp_before_admin_bar_render' , array( $this , 'admin_bar_menu') , 25 );
|
987 |
add_action( 'init' , array( $this , 'notice_dismiss' ) , 2 );
|
@@ -991,7 +996,7 @@ class WP_Admin_UI_Customize
|
|
991 |
add_action( 'wp_dashboard_setup' , array( $this , 'wp_dashboard_setup' ) );
|
992 |
add_action( 'admin_head' , array( $this , 'removemetabox' ) , 11 );
|
993 |
add_action( 'admin_init' , array( $this , 'remove_postformats' ) );
|
994 |
-
add_filter( '
|
995 |
add_filter( 'get_sample_permalink_html' , array( $this , 'add_edit_post_change_permalink' ) );
|
996 |
add_action( 'admin_print_styles-nav-menus.php', array( $this , 'nav_menus' ) );
|
997 |
add_filter( 'admin_title', array( $this, 'admin_title' ) );
|
@@ -1007,11 +1012,7 @@ class WP_Admin_UI_Customize
|
|
1007 |
if( !empty( $SettingRole ) ) {
|
1008 |
unset($SettingRole["UPFN"]);
|
1009 |
|
1010 |
-
$UserRole =
|
1011 |
-
$User = wp_get_current_user();
|
1012 |
-
if( !empty( $User->roles[0] ) ) {
|
1013 |
-
$UserRole = $User->roles[0];
|
1014 |
-
}
|
1015 |
|
1016 |
if( !is_network_admin() && !empty( $UserRole ) ) {
|
1017 |
if( array_key_exists( $UserRole , $SettingRole ) ) {
|
@@ -1405,7 +1406,14 @@ class WP_Admin_UI_Customize
|
|
1405 |
if( !empty( $GetData ) && is_array( $GetData ) && !empty( $GetData["main"] ) ) {
|
1406 |
$SetMain_menu = array();
|
1407 |
$SetMain_submenu = array();
|
1408 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1409 |
|
1410 |
foreach($GetData["main"] as $mm_pos => $mm) {
|
1411 |
if($mm["slug"] == 'separator') {
|
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_3_5
|
6 |
+
Version: 1.3.5
|
7 |
Author: gqevu6bsiz
|
8 |
+
Author URI: http://gqevu6bsiz.chicappa.jp/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_3_5
|
9 |
Text Domain: wauc
|
10 |
Domain Path: /languages
|
11 |
*/
|
48 |
|
49 |
|
50 |
function __construct() {
|
51 |
+
$this->Ver = '1.3.5';
|
52 |
$this->Name = 'WP Admin UI Customize';
|
53 |
$this->Dir = WP_PLUGIN_URL . '/' . dirname( plugin_basename( __FILE__ ) ) . '/';
|
54 |
$this->Site = 'http://wpadminuicustomize.com/';
|
673 |
return $str;
|
674 |
}
|
675 |
|
676 |
+
// SetList
|
677 |
+
function get_user_role_group() {
|
678 |
+
$UserRole = '';
|
679 |
+
$User = wp_get_current_user();
|
680 |
+
if( !empty( $User->roles ) ) {
|
681 |
+
$UserRole = array_shift( $User->roles );
|
682 |
+
}
|
683 |
+
return $UserRole;
|
684 |
+
}
|
685 |
|
686 |
|
687 |
|
984 |
if( !empty( $SettingRole ) ) {
|
985 |
unset($SettingRole["UPFN"]);
|
986 |
|
987 |
+
$UserRole = $this->get_user_role_group();
|
|
|
|
|
|
|
|
|
988 |
|
989 |
+
if( !is_network_admin() && !empty( $UserRole) ) {
|
990 |
if( array_key_exists( $UserRole , $SettingRole ) ) {
|
991 |
add_action( 'wp_before_admin_bar_render' , array( $this , 'admin_bar_menu') , 25 );
|
992 |
add_action( 'init' , array( $this , 'notice_dismiss' ) , 2 );
|
996 |
add_action( 'wp_dashboard_setup' , array( $this , 'wp_dashboard_setup' ) );
|
997 |
add_action( 'admin_head' , array( $this , 'removemetabox' ) , 11 );
|
998 |
add_action( 'admin_init' , array( $this , 'remove_postformats' ) );
|
999 |
+
add_filter( 'admin_head', array( $this , 'sidemenu' ) );
|
1000 |
add_filter( 'get_sample_permalink_html' , array( $this , 'add_edit_post_change_permalink' ) );
|
1001 |
add_action( 'admin_print_styles-nav-menus.php', array( $this , 'nav_menus' ) );
|
1002 |
add_filter( 'admin_title', array( $this, 'admin_title' ) );
|
1012 |
if( !empty( $SettingRole ) ) {
|
1013 |
unset($SettingRole["UPFN"]);
|
1014 |
|
1015 |
+
$UserRole = $this->get_user_role_group();
|
|
|
|
|
|
|
|
|
1016 |
|
1017 |
if( !is_network_admin() && !empty( $UserRole ) ) {
|
1018 |
if( array_key_exists( $UserRole , $SettingRole ) ) {
|
1406 |
if( !empty( $GetData ) && is_array( $GetData ) && !empty( $GetData["main"] ) ) {
|
1407 |
$SetMain_menu = array();
|
1408 |
$SetMain_submenu = array();
|
1409 |
+
|
1410 |
+
$separator_menu = array();
|
1411 |
+
foreach( $menu as $key => $ms ) {
|
1412 |
+
if( strstr( $ms[2] , 'separator' ) ) {
|
1413 |
+
$separator_menu = $ms;
|
1414 |
+
break;
|
1415 |
+
}
|
1416 |
+
}
|
1417 |
|
1418 |
foreach($GetData["main"] as $mm_pos => $mm) {
|
1419 |
if($mm["slug"] == 'separator') {
|