Version Description
(2016-08-09) = * Fix to see Logout link also on mobile view. * Fix type definition.
Download this release
Release Info
Developer | Bueltge |
Plugin | Adminimize |
Version | 1.10.6 |
Comparing to | |
See all releases |
Code changes from version 1.10.5 to 1.10.6
- CHANGELOG.md +6 -2
- adminimize.php +2 -2
- inc-setup/admin-bar-items.php +4 -0
- inc-setup/remove-admin-bar.php +23 -0
- readme.txt +7 -3
CHANGELOG.md
CHANGED
@@ -1,8 +1,12 @@
|
|
1 |
# Change Log
|
2 |
All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/).
|
3 |
|
4 |
-
## [Unreleased](https://github.com/bueltge/Adminimize/compare/1.10.
|
5 |
-
|
|
|
|
|
|
|
|
|
6 |
|
7 |
## [1.10.5](https://github.com/bueltge/Adminimize/compare/1.10.4...1.10.5) - 2016-06-28
|
8 |
### Fixed
|
1 |
# Change Log
|
2 |
All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/).
|
3 |
|
4 |
+
## [Unreleased](https://github.com/bueltge/Adminimize/compare/1.10.6...HEAD)
|
5 |
+
|
6 |
+
## [1.10.6](https://github.com/bueltge/Adminimize/compare/1.10.5...1.10.6) - 2016-08-09
|
7 |
+
### Fixed
|
8 |
+
* Fix to see Logout link also on mobile view.
|
9 |
+
* Fix type definition.
|
10 |
|
11 |
## [1.10.5](https://github.com/bueltge/Adminimize/compare/1.10.4...1.10.5) - 2016-06-28
|
12 |
### Fixed
|
adminimize.php
CHANGED
@@ -7,13 +7,13 @@
|
|
7 |
* Description: Visually compresses the administrative meta-boxes so that more admin page content can be initially seen. The plugin that lets you hide 'unnecessary' items from the WordPress administration menu, for all roles of your install. You can also hide post meta controls on the edit-area to simplify the interface. It is possible to simplify the admin in different for all roles.
|
8 |
* Author: Frank Bültge
|
9 |
* Author URI: http://bueltge.de/
|
10 |
-
* Version: 1.10.
|
11 |
* License: GPLv3+
|
12 |
*
|
13 |
* @package WordPress
|
14 |
* @author Frank Bültge <frank@bueltge.de>
|
15 |
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
16 |
-
* @version
|
17 |
*/
|
18 |
|
19 |
/**
|
7 |
* Description: Visually compresses the administrative meta-boxes so that more admin page content can be initially seen. The plugin that lets you hide 'unnecessary' items from the WordPress administration menu, for all roles of your install. You can also hide post meta controls on the edit-area to simplify the interface. It is possible to simplify the admin in different for all roles.
|
8 |
* Author: Frank Bültge
|
9 |
* Author URI: http://bueltge.de/
|
10 |
+
* Version: 1.10.6
|
11 |
* License: GPLv3+
|
12 |
*
|
13 |
* @package WordPress
|
14 |
* @author Frank Bültge <frank@bueltge.de>
|
15 |
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
16 |
+
* @version 2016-08-09
|
17 |
*/
|
18 |
|
19 |
/**
|
inc-setup/admin-bar-items.php
CHANGED
@@ -114,6 +114,10 @@ function _mw_adminimize_change_admin_bar() {
|
|
114 |
}
|
115 |
}
|
116 |
|
|
|
|
|
|
|
|
|
117 |
// Merge multidimensional array in to one, flat.
|
118 |
$disabled_admin_bar_option_ = (array) array_reduce( $disabled_admin_bar_option_, 'array_merge', array() );
|
119 |
|
114 |
}
|
115 |
}
|
116 |
|
117 |
+
// New declaration of type for array reduce.
|
118 |
+
if ( ! isset( $disabled_admin_bar_option_ ) ) {
|
119 |
+
$disabled_admin_bar_option_ = array();
|
120 |
+
}
|
121 |
// Merge multidimensional array in to one, flat.
|
122 |
$disabled_admin_bar_option_ = (array) array_reduce( $disabled_admin_bar_option_, 'array_merge', array() );
|
123 |
|
inc-setup/remove-admin-bar.php
CHANGED
@@ -66,6 +66,17 @@ function _mw_adminimize_add_logout( $wp_admin_bar ) {
|
|
66 |
);
|
67 |
}
|
68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
/**
|
70 |
* Add Logout link include user info.
|
71 |
*
|
@@ -104,6 +115,10 @@ function _mw_adminimize_add_user_logout( $wp_admin_bar ) {
|
|
104 |
*/
|
105 |
function _mw_adminimize_set_logout_menu() {
|
106 |
|
|
|
|
|
|
|
|
|
107 |
// exclude super admin
|
108 |
if ( _mw_adminimize_exclude_super_admin() ) {
|
109 |
return;
|
@@ -134,10 +149,14 @@ function _mw_adminimize_set_logout_menu() {
|
|
134 |
case 2:
|
135 |
add_action( 'wp_before_admin_bar_render', '_mw_adminimize_remove_my_account' );
|
136 |
add_action( 'admin_bar_menu', '_mw_adminimize_add_logout', 0 );
|
|
|
|
|
137 |
break;
|
138 |
case 3:
|
139 |
add_action( 'wp_before_admin_bar_render', '_mw_adminimize_remove_my_account' );
|
140 |
add_action( 'admin_bar_menu', '_mw_adminimize_add_user_logout', 0 );
|
|
|
|
|
141 |
break;
|
142 |
}
|
143 |
}
|
@@ -149,6 +168,10 @@ function _mw_adminimize_set_logout_menu() {
|
|
149 |
*/
|
150 |
function _mw_adminimize_remove_admin_bar() {
|
151 |
|
|
|
|
|
|
|
|
|
152 |
// exclude super admin
|
153 |
if ( _mw_adminimize_exclude_super_admin() ) {
|
154 |
return;
|
66 |
);
|
67 |
}
|
68 |
|
69 |
+
/**
|
70 |
+
* Add stylesheet for see the the admin bar item also on mobile.
|
71 |
+
*/
|
72 |
+
function _mw_adminimize_admin_bar_style() {
|
73 |
+
?>
|
74 |
+
<style type="text/css">
|
75 |
+
#wpadminbar #wp-admin-bar-mw-account { display: block; }
|
76 |
+
</style>
|
77 |
+
<?php
|
78 |
+
}
|
79 |
+
|
80 |
/**
|
81 |
* Add Logout link include user info.
|
82 |
*
|
115 |
*/
|
116 |
function _mw_adminimize_set_logout_menu() {
|
117 |
|
118 |
+
if ( ! is_user_logged_in() ) {
|
119 |
+
return;
|
120 |
+
}
|
121 |
+
|
122 |
// exclude super admin
|
123 |
if ( _mw_adminimize_exclude_super_admin() ) {
|
124 |
return;
|
149 |
case 2:
|
150 |
add_action( 'wp_before_admin_bar_render', '_mw_adminimize_remove_my_account' );
|
151 |
add_action( 'admin_bar_menu', '_mw_adminimize_add_logout', 0 );
|
152 |
+
add_action( 'wp_head', '_mw_adminimize_admin_bar_style' );
|
153 |
+
add_action( 'admin_head', '_mw_adminimize_admin_bar_style' );
|
154 |
break;
|
155 |
case 3:
|
156 |
add_action( 'wp_before_admin_bar_render', '_mw_adminimize_remove_my_account' );
|
157 |
add_action( 'admin_bar_menu', '_mw_adminimize_add_user_logout', 0 );
|
158 |
+
add_action( 'wp_head', '_mw_adminimize_admin_bar_style' );
|
159 |
+
add_action( 'admin_head', '_mw_adminimize_admin_bar_style' );
|
160 |
break;
|
161 |
}
|
162 |
}
|
168 |
*/
|
169 |
function _mw_adminimize_remove_admin_bar() {
|
170 |
|
171 |
+
if ( ! is_user_logged_in() ) {
|
172 |
+
return;
|
173 |
+
}
|
174 |
+
|
175 |
// exclude super admin
|
176 |
if ( _mw_adminimize_exclude_super_admin() ) {
|
177 |
return;
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: Bueltge, inpsyde
|
|
3 |
Donate link: https://www.paypal.me/FrankBueltge
|
4 |
Tags: color, scheme, theme, admin, dashboard, color scheme, plugin, interface, ui, metabox, hide, editor, minimal, menu, customization, interface, administration, lite, light, usability, lightweight, layout, zen
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.10.
|
8 |
|
9 |
Adminimize that lets you hide 'unnecessary' items from the WordPress backend
|
10 |
|
@@ -14,7 +14,7 @@ If you manage a multi-author WordPress blog or WordPress sites for clients, then
|
|
14 |
Adminimize makes it easy to remove items from view based on a user’s role.
|
15 |
|
16 |
= What does this plugin do? =
|
17 |
-
The plugin changes the administration backend and gives you the power to assign rights on certain parts. Admins can activate/deactivate every part of the menu and even parts of the sub-menu. Meta fields can be administered separately for posts and pages. Certain parts of the write menu can be deactivated separately for admins or non-admins. The header of the backend is minimized and optimized to give you more space and the structure of the menu gets changed to make it more logical - this can all be done per user so each
|
18 |
|
19 |
= Support Custom Post Type =
|
20 |
The plugin support all functions also for custom post types, automatically in the settings page.
|
@@ -43,6 +43,10 @@ Use the installer via back-end of your install or ...
|
|
43 |
1. Settings area in WP 4.5-alpha
|
44 |
|
45 |
== Changelog ==
|
|
|
|
|
|
|
|
|
46 |
= 1.10.5 (2016-06-28) =
|
47 |
* Fix PHP Warning
|
48 |
* Fix check for active usage of Link Manager
|
3 |
Donate link: https://www.paypal.me/FrankBueltge
|
4 |
Tags: color, scheme, theme, admin, dashboard, color scheme, plugin, interface, ui, metabox, hide, editor, minimal, menu, customization, interface, administration, lite, light, usability, lightweight, layout, zen
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 4.6.0
|
7 |
+
Stable tag: 1.10.6
|
8 |
|
9 |
Adminimize that lets you hide 'unnecessary' items from the WordPress backend
|
10 |
|
14 |
Adminimize makes it easy to remove items from view based on a user’s role.
|
15 |
|
16 |
= What does this plugin do? =
|
17 |
+
The plugin changes the administration backend and gives you the power to assign rights on certain parts. Admins can activate/deactivate every part of the menu and even parts of the sub-menu. Meta fields can be administered separately for posts and pages. Certain parts of the write menu can be deactivated separately for admins or non-admins. The header of the backend is minimized and optimized to give you more space and the structure of the menu gets changed to make it more logical - this can all be done per user so each role and their resulting users can have his own settings.
|
18 |
|
19 |
= Support Custom Post Type =
|
20 |
The plugin support all functions also for custom post types, automatically in the settings page.
|
43 |
1. Settings area in WP 4.5-alpha
|
44 |
|
45 |
== Changelog ==
|
46 |
+
= 1.10.6 (2016-08-09) =
|
47 |
+
* Fix to see Logout link also on mobile view.
|
48 |
+
* Fix type definition.
|
49 |
+
|
50 |
= 1.10.5 (2016-06-28) =
|
51 |
* Fix PHP Warning
|
52 |
* Fix check for active usage of Link Manager
|