Adminimize - Version 1.11.9

Version Description

(2022-12-09) = * Fix Settings after JSON Import, #155, Probs @borsodigerii * Fix title of plugins there get an array instead string, #153, Probs @denarie

Download this release

Release Info

Developer Bueltge
Plugin Icon wp plugin Adminimize
Version 1.11.9
Comparing to
See all releases

Code changes from version 1.11.8 to 1.11.9

CHANGELOG.md CHANGED
@@ -1,7 +1,14 @@
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.11.7...HEAD)
 
 
 
 
 
 
 
5
  * Fix for PHP8, #148, Probs @g-kanoufi
6
  * Fix spaces intextara, global options, #141
7
 
@@ -19,7 +26,7 @@ All notable changes to this project will be documented in this file. This projec
19
  * Add filter hooks `adminimize_user_roles_filter` and `adminimize_user_roles_names_filter` to allow add or remove role column in adminimize options, Probs @ulietNoth
20
 
21
  ## [1.11.5](https://github.com/bueltge/Adminimize/compare/1.11.4...1.11.5) - 2019-07-07
22
- * Fixed: Remove deprecated version for support of php 7.2 #109.
23
  * Fixed: Dashboard removels for multible roles.
24
  * Fixed: settings link.
25
  * Maintenance: More solid page checks, codex issues.
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.11.9...HEAD)
5
+ *
6
+
7
+ ## [1.11.9](https://github.com/bueltge/Adminimize/compare/1.11.8...1.11.9) - 2022-12-09
8
+ * Fix Settings after JSON Import, #155, Probs @borsodigerii
9
+ * Fix title of plugins there get an array instead string, #153, Probs @denarie
10
+
11
+ ## [1.11.8](https://github.com/bueltge/Adminimize/compare/1.11.7...1.11.8) - 2022-07-19
12
  * Fix for PHP8, #148, Probs @g-kanoufi
13
  * Fix spaces intextara, global options, #141
14
 
26
  * Add filter hooks `adminimize_user_roles_filter` and `adminimize_user_roles_names_filter` to allow add or remove role column in adminimize options, Probs @ulietNoth
27
 
28
  ## [1.11.5](https://github.com/bueltge/Adminimize/compare/1.11.4...1.11.5) - 2019-07-07
29
+ * Fixed: Remove deprecated version for support of php 7.2, #109.
30
  * Fixed: Dashboard removels for multible roles.
31
  * Fixed: settings link.
32
  * Maintenance: More solid page checks, codex issues.
adminimize.php CHANGED
@@ -7,7 +7,7 @@
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.11.8
11
  * License: GPLv2+
12
  *
13
  * Php Version 5.6
@@ -15,7 +15,7 @@
15
  * @package WordPress
16
  * @author Frank Bültge <frank@bueltge.de>
17
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
18
- * @version 2022-07-19
19
  */
20
 
21
  /**
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.11.9
11
  * License: GPLv2+
12
  *
13
  * Php Version 5.6
15
  * @package WordPress
16
  * @author Frank Bültge <frank@bueltge.de>
17
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
18
+ * @version 2022-12-09
19
  */
20
 
21
  /**
inc-options/admin_bar_frontend.php CHANGED
@@ -79,7 +79,7 @@ if ( ! isset( $user_roles_names ) ) {
79
  $message = '';
80
  if ( ! empty( $admin_bar_frontend_items ) && is_array( $admin_bar_frontend_items ) ) {
81
  foreach ( $admin_bar_frontend_items as $key => $value ) {
82
-
83
  $is_parent = ! empty( $value->parent );
84
  $has_link = ! empty( $value->href );
85
  // No title on the item.
79
  $message = '';
80
  if ( ! empty( $admin_bar_frontend_items ) && is_array( $admin_bar_frontend_items ) ) {
81
  foreach ( $admin_bar_frontend_items as $key => $value ) {
82
+ $value = (is_object($value)) ? $value : (object) $value;
83
  $is_parent = ! empty( $value->parent );
84
  $has_link = ! empty( $value->href );
85
  // No title on the item.
inc-options/settings_notice.php CHANGED
@@ -4,13 +4,18 @@
4
  * @subpackage Notice for settings page
5
  * @author Frank Bültge
6
  */
 
7
  if ( ! function_exists( 'add_filter' ) ) {
8
  echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
9
  exit;
10
  }
11
- // always visible
 
12
  add_action( 'load-settings_page_adminimize/adminimize', '_mw_adminimize_add_settings_error' );
13
 
 
 
 
14
  function _mw_adminimize_add_settings_error() {
15
 
16
  $settings_hint_message = '<span style="font-size: 35px; float: left; margin: 10px 3px 0 0;">&#x261D;</span>'
4
  * @subpackage Notice for settings page
5
  * @author Frank Bültge
6
  */
7
+
8
  if ( ! function_exists( 'add_filter' ) ) {
9
  echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
10
  exit;
11
  }
12
+
13
+ // always visible.
14
  add_action( 'load-settings_page_adminimize/adminimize', '_mw_adminimize_add_settings_error' );
15
 
16
+ /**
17
+ * Add custom errer messages for the error notes.
18
+ */
19
  function _mw_adminimize_add_settings_error() {
20
 
21
  $settings_hint_message = '<span style="font-size: 35px; float: left; margin: 10px 3px 0 0;">&#x261D;</span>'
inc-setup/dashboard.php CHANGED
@@ -151,10 +151,16 @@ function _mw_adminimize_get_dashboard_widgets() {
151
  foreach ( (array) $datas as $priority => $data ) {
152
  foreach ( (array) $data as $widget => $value ) {
153
 
 
154
  if ( ! isset( $value['title'])) {
155
  $value['title'] = '';
156
  }
157
 
 
 
 
 
 
158
  $widgets[ $widget ] = array(
159
  'id' => $widget,
160
  'title' => strip_tags(
151
  foreach ( (array) $datas as $priority => $data ) {
152
  foreach ( (array) $data as $widget => $value ) {
153
 
154
+
155
  if ( ! isset( $value['title'])) {
156
  $value['title'] = '';
157
  }
158
 
159
+ // Some plugins create a title that contains an array, we create an empty string to prevent an error in strip_tags
160
+ if (is_array ( $value['title'])) {
161
+ $value['title'] = '';
162
+ }
163
+
164
  $widgets[ $widget ] = array(
165
  'id' => $widget,
166
  'title' => strip_tags(
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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: 6.1
7
- Stable tag: 1.11.8
8
 
9
  Adminimize that lets you hide 'unnecessary' items from the WordPress backend
10
 
@@ -28,7 +28,7 @@ You can add your own options, you must only check for css selectors.
28
  == Installation ==
29
  = Requirements =
30
  * WordPress version 4.0 and later; tested only in last stable version.
31
- * PHP 5.2.4, newer PHP versions will work faster. Tested only from version 5.6.
32
 
33
  Use the installer via back-end of your install or ...
34
 
@@ -38,6 +38,10 @@ Use the installer via back-end of your install or ...
38
  4. Administrator can go to `Settings` > `Adminimize` menu and configure the plugin (Menu, Sub-menu, Meta boxes, ...)
39
 
40
  == Changelog ==
 
 
 
 
41
  = 1.11.8 (2022-07-19) =
42
  * Fix for PHP8, #148, Probs @g-kanoufi
43
  * Fix spaces in textara, global options, #141
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: 6.1
7
+ Stable tag: 1.11.9
8
 
9
  Adminimize that lets you hide 'unnecessary' items from the WordPress backend
10
 
28
  == Installation ==
29
  = Requirements =
30
  * WordPress version 4.0 and later; tested only in last stable version.
31
+ * PHP 5.6, newer PHP versions will work faster. Tested only from version 5.6.
32
 
33
  Use the installer via back-end of your install or ...
34
 
38
  4. Administrator can go to `Settings` > `Adminimize` menu and configure the plugin (Menu, Sub-menu, Meta boxes, ...)
39
 
40
  == Changelog ==
41
+ = 1.11.9 (2022-12-09) =
42
+ * Fix Settings after JSON Import, #155, Probs @borsodigerii
43
+ * Fix title of plugins there get an array instead string, #153, Probs @denarie
44
+
45
  = 1.11.8 (2022-07-19) =
46
  * Fix for PHP8, #148, Probs @g-kanoufi
47
  * Fix spaces in textara, global options, #141