Adminimize - Version 1.11.6

Version Description

(2019-12-23) = * Fixed to allow br, a, strong, em on admin footer hint. * Add new filter hook to change the options, like more or less options. mw_adminimize_options_before_update, Probs @g-kanoufi * Add new filter hooks to add custom area on the settings page, before and after Minmenu on top. mw_adminimize_minimenu_before_first_tr and mw_adminimize_minimenu_after_last_tr, Probs @g-kanoufi * Add filter hook adminimize_mu_force_options_per_site to allow different adminimize options per site on multisite, Probs @ulietNoth * 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

Download this release

Release Info

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

Code changes from version 1.11.5 to 1.11.6

LICENSE.txt CHANGED
File without changes
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.5
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 2019-07-07
19
  */
20
 
21
  /**
@@ -132,7 +132,18 @@ function _mw_adminimize_is_active_on_multisite() {
132
  require_once ABSPATH . '/wp-admin/includes/plugin.php';
133
  }
134
 
135
- if ( is_multisite() && is_plugin_active_for_network( FB_ADMINIMIZE_BASENAME ) ) {
 
 
 
 
 
 
 
 
 
 
 
136
  return TRUE;
137
  }
138
 
@@ -168,7 +179,14 @@ function _mw_adminimize_get_all_user_roles() {
168
  );
169
  }
170
 
171
- return $user_roles;
 
 
 
 
 
 
 
172
  }
173
 
174
  /**
@@ -204,7 +222,14 @@ function _mw_adminimize_get_all_user_roles_names() {
204
  );
205
  }
206
 
207
- return $user_roles_names;
 
 
 
 
 
 
 
208
  }
209
 
210
  /**
@@ -1635,6 +1660,19 @@ function _mw_adminimize_update() {
1635
  $adminimizeoptions[ 'mw_adminimize_default_submenu' ] = $GLOBALS[ 'submenu' ];
1636
  }
1637
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1638
  // update
1639
  $update_status = _mw_adminimize_update_option( $adminimizeoptions );
1640
 
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.6
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 2019-12-23
19
  */
20
 
21
  /**
132
  require_once ABSPATH . '/wp-admin/includes/plugin.php';
133
  }
134
 
135
+ /**
136
+ * Allow different adminimize options per site on multisite.
137
+ *
138
+ * @since 1.11.6
139
+ *
140
+ * @param bool
141
+ */
142
+ $force_single_site_usage = apply_filters( 'adminimize_mu_force_options_per_site', false );
143
+
144
+ if ( is_multisite()
145
+ && is_plugin_active_for_network( FB_ADMINIMIZE_BASENAME )
146
+ && ! $force_single_site_usage ) {
147
  return TRUE;
148
  }
149
 
179
  );
180
  }
181
 
182
+ /**
183
+ * Use this filter to add or remove a role in Adminimize options.
184
+ *
185
+ * @since 1.11.6
186
+ *
187
+ * @param array
188
+ */
189
+ return apply_filters( 'adminimize_user_roles_filter', $user_roles );
190
  }
191
 
192
  /**
222
  );
223
  }
224
 
225
+ /**
226
+ * Use this filter to add or remove a role-name in Adminimize options.
227
+ *
228
+ * @since 1.11.6
229
+ *
230
+ * @param array
231
+ */
232
+ return apply_filters( 'adminimize_user_roles_names_filter', $user_roles_names );
233
  }
234
 
235
  /**
1660
  $adminimizeoptions[ 'mw_adminimize_default_submenu' ] = $GLOBALS[ 'submenu' ];
1661
  }
1662
 
1663
+ /**
1664
+ * Filter the adminimize options.
1665
+ *
1666
+ * Make the options filterable, so we can modify what is saved before it's sent to the db
1667
+ *
1668
+ * @since 1.11.6
1669
+ *
1670
+ * @param array $adminimizeoptions the original options.
1671
+ * @param array $user_roles Array of the user roles.
1672
+ * @param array $_POST Post data.
1673
+ */
1674
+ $adminimizeoptions = apply_filters( 'mw_adminimize_options_before_update', $adminimizeoptions, $user_roles, $_POST );
1675
+
1676
  // update
1677
  $update_status = _mw_adminimize_update_option( $adminimizeoptions );
1678
 
adminimize_page.php CHANGED
File without changes
css/mw_cat_full.css CHANGED
File without changes
css/mw_small_user_info.css CHANGED
File without changes
css/style.css CHANGED
File without changes
inc-options/admin_bar.php CHANGED
File without changes
inc-options/backend_options.php CHANGED
File without changes
inc-options/dashboard_options.php CHANGED
File without changes
inc-options/deinstall_options.php CHANGED
File without changes
inc-options/global_options.php CHANGED
File without changes
inc-options/im_export_options.php CHANGED
File without changes
inc-options/links_options.php CHANGED
File without changes
inc-options/menu_options.php CHANGED
File without changes
inc-options/minimenu.php CHANGED
@@ -26,6 +26,16 @@ if ( _mw_adminimize_is_active_on_multisite() ) {
26
 
27
  <div class="inside">
28
  <table class="widefat" cellspacing="0">
 
 
 
 
 
 
 
 
 
 
29
  <tr>
30
  <td class="row-title"><a href="#about"><?php esc_attr_e(
31
  'About the plugin', 'adminimize'
@@ -128,6 +138,16 @@ if ( _mw_adminimize_is_active_on_multisite() ) {
128
  'Uninstall Options', 'adminimize'
129
  ); ?></a></td>
130
  </tr>
 
 
 
 
 
 
 
 
 
 
131
  </table>
132
  </div>
133
  </div>
26
 
27
  <div class="inside">
28
  <table class="widefat" cellspacing="0">
29
+ <?php
30
+ /**
31
+ * Before first row minimenu
32
+ *
33
+ * Add the possibility to add element before first row of the minimenu.
34
+ *
35
+ * @since 1.11.6
36
+ */
37
+ do_action( 'mw_adminimize_minimenu_before_first_tr' );
38
+ ?>
39
  <tr>
40
  <td class="row-title"><a href="#about"><?php esc_attr_e(
41
  'About the plugin', 'adminimize'
138
  'Uninstall Options', 'adminimize'
139
  ); ?></a></td>
140
  </tr>
141
+ <?php
142
+ /**
143
+ * After last row minimenu
144
+ *
145
+ * Add the possibility to add element after last row of the minimenu.
146
+ *
147
+ * @since 1.11.6
148
+ */
149
+ do_action( 'mw_adminimize_minimenu_after_last_tr' );
150
+ ?>
151
  </table>
152
  </div>
153
  </div>
inc-options/settings_notice.php CHANGED
File without changes
inc-options/theme_options.php CHANGED
File without changes
inc-options/widget_options.php CHANGED
File without changes
inc-options/wp_nav_menu_options.php CHANGED
File without changes
inc-options/write_cp_options.php CHANGED
File without changes
inc-options/write_page_options.php CHANGED
File without changes
inc-options/write_post_options.php CHANGED
File without changes
inc-setup/admin-bar-items.php CHANGED
File without changes
inc-setup/admin-footer.php CHANGED
@@ -37,5 +37,6 @@ function _mw_adminimize_init_admin_footer() {
37
  */
38
  function _mw_adminimize_add_admin_footer() {
39
 
40
- echo esc_html( _mw_adminimize_get_option_value( '_mw_adminimize_advice_txt' ) ) . '<br />';
 
41
  }
37
  */
38
  function _mw_adminimize_add_admin_footer() {
39
 
40
+ // Filtered via post save with wp_kses()
41
+ echo _mw_adminimize_get_option_value( '_mw_adminimize_advice_txt' ) . '<br />';
42
  }
inc-setup/dashboard.php CHANGED
File without changes
inc-setup/meta-boxes.php CHANGED
File without changes
inc-setup/remove-admin-bar.php CHANGED
File without changes
inc-setup/widget.php CHANGED
File without changes
js/adminimize.js CHANGED
File without changes
js/remove_footer.js CHANGED
File without changes
js/remove_header.js CHANGED
File without changes
js/tb_window.js CHANGED
File without changes
js/timestamp.js CHANGED
File without changes
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: 5.2
7
- Stable tag: 1.11.5
8
 
9
  Adminimize that lets you hide 'unnecessary' items from the WordPress backend
10
 
@@ -25,7 +25,7 @@ It is possible to add own options to hide areas in the back-end of WordPress. It
25
  = Compatibility with plugins for MetaBoxes in Write-area =
26
  You can add your own options, you must only check for css selectors.
27
 
28
- **Crafted by [Inpsyde](http://inpsyde.com) · Engineering the web since 2006.**
29
 
30
  == Installation ==
31
  = Requirements =
@@ -40,7 +40,14 @@ Use the installer via back-end of your install or ...
40
  4. Administrator can go to `Settings` > `Adminimize` menu and configure the plugin (Menu, Sub-menu, Meta boxes, ...)
41
 
42
  == Changelog ==
43
- 1.11.5 (2019-07-07)
 
 
 
 
 
 
 
44
  * Fixed: Remove deprecated version for support of php 7.2 #109.
45
  * Fixed: Dashboard removels for multible roles.
46
  * Fixed: settings link.
@@ -50,13 +57,13 @@ Use the installer via back-end of your install or ...
50
  * Feature: Close every box other than the first, to keep the page clean.
51
  # Fixed: Hide Meta Boxes on usage of multiple roles, Probs @filipecsweb.
52
 
53
- 1.11.4 (2017-12-14)
54
  * Fixed hide of menu items, if you use custom menu, see [wiki page](https://github.com/bueltge/Adminimize/wiki/Custom-Menu-Order)
55
  * Fixed Import/Export for different server environments.
56
  * Remove languge file on github, we use always the translation community from wordpress.org
57
  * Fixed check for settings page of Adminimize, so that we see all options, areas of the install.
58
 
59
- 1.11.3 (2017-11-16)
60
  * Added custom dashbaord options to admin head to hide it via css.
61
  * Added support of multiple roles for dashboard options.
62
  * Added new option to hide 'Add New' Button on each post type.
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: 5.3
7
+ Stable tag: 1.11.6
8
 
9
  Adminimize that lets you hide 'unnecessary' items from the WordPress backend
10
 
25
  = Compatibility with plugins for MetaBoxes in Write-area =
26
  You can add your own options, you must only check for css selectors.
27
 
28
+ **Crafted by [Inpsyde](https://inpsyde.com) · Engineering the web since 2006.**
29
 
30
  == Installation ==
31
  = Requirements =
40
  4. Administrator can go to `Settings` > `Adminimize` menu and configure the plugin (Menu, Sub-menu, Meta boxes, ...)
41
 
42
  == Changelog ==
43
+ = 1.11.6 (2019-12-23) =
44
+ * Fixed to allow br, a, strong, em on admin footer hint.
45
+ * Add new filter hook to change the options, like more or less options. `mw_adminimize_options_before_update`, Probs @g-kanoufi
46
+ * Add new filter hooks to add custom area on the settings page, before and after Minmenu on top. `mw_adminimize_minimenu_before_first_tr` and `mw_adminimize_minimenu_after_last_tr`, Probs @g-kanoufi
47
+ * Add filter hook `adminimize_mu_force_options_per_site` to allow different adminimize options per site on multisite, Probs @ulietNoth
48
+ * 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
49
+
50
+ = 1.11.5 (2019-07-07) =
51
  * Fixed: Remove deprecated version for support of php 7.2 #109.
52
  * Fixed: Dashboard removels for multible roles.
53
  * Fixed: settings link.
57
  * Feature: Close every box other than the first, to keep the page clean.
58
  # Fixed: Hide Meta Boxes on usage of multiple roles, Probs @filipecsweb.
59
 
60
+ = 1.11.4 (2017-12-14) =
61
  * Fixed hide of menu items, if you use custom menu, see [wiki page](https://github.com/bueltge/Adminimize/wiki/Custom-Menu-Order)
62
  * Fixed Import/Export for different server environments.
63
  * Remove languge file on github, we use always the translation community from wordpress.org
64
  * Fixed check for settings page of Adminimize, so that we see all options, areas of the install.
65
 
66
+ = 1.11.3 (2017-11-16) =
67
  * Added custom dashbaord options to admin head to hide it via css.
68
  * Added support of multiple roles for dashboard options.
69
  * Added new option to hide 'Add New' Button on each post type.