Changeset 3004114
- Timestamp:
- 12/01/2023 09:03:08 AM (2 years ago)
- Location:
- adminimize/trunk
- Files:
-
- 7 edited
-
adminimize.php (modified) (4 diffs)
-
inc-options/admin_bar_frontend.php (modified) (1 diff)
-
inc-options/settings_notice.php (modified) (1 diff)
-
inc-setup/dashboard.php (modified) (1 diff)
-
inc-setup/meta-boxes.php (modified) (2 diffs)
-
inc-setup/remove-admin-notices.php (modified) (1 diff)
-
readme.txt (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
adminimize/trunk/adminimize.php
r2954554 r3004114 6 6 * Domain Path: /languages 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: WP MEDIA SAS9 * Author URI: https://wp-media.me/10 * Version: 1.11. 98 * Author: Frank Bültge 9 * Author URI: https://bueltge.de/ 10 * Version: 1.11.10 11 11 * License: GPLv2+ 12 12 * … … 16 16 * @author Frank Bültge <[email protected]> 17 17 * @license http://opensource.org/licenses/gpl-license.php GNU Public License 18 * @version 202 2-12-0918 * @version 2023-11-23 19 19 */ 20 20 … … 270 270 function _mw_adminimize_admin_init() { 271 271 272 global $pagenow, $ post_type, $menu, $submenu;272 global $pagenow, $menu, $submenu; 273 273 274 274 $post_id = 0; … … 278 278 $post_id = (int) esc_attr( $_POST[ 'post_ID' ] ); 279 279 } 280 281 $current_post_type = $post_type; 280 // Fallback to get always the post type. 281 if ( isset( $_GET[ 'post_type' ] ) && ! is_array( $_GET[ 'post_type' ] ) ) { 282 $current_post_type = esc_attr( $_GET['post_type'] ); 283 } 284 if ( ! isset( $current_post_type ) || empty( $current_post_type ) ) { 285 $current_post_type = get_post_type($post->ID); 286 } 282 287 if ( ! isset( $current_post_type ) || empty( $current_post_type ) ) { 283 288 $current_post_type = get_post_type( $post_id ); -
adminimize/trunk/inc-options/admin_bar_frontend.php
r2341194 r3004114 80 80 if ( ! empty( $admin_bar_frontend_items ) && is_array( $admin_bar_frontend_items ) ) { 81 81 foreach ( $admin_bar_frontend_items as $key => $value ) { 82 82 $value = (is_object($value)) ? $value : (object) $value; 83 83 $is_parent = ! empty( $value->parent ); 84 84 $has_link = ! empty( $value->href ); -
adminimize/trunk/inc-options/settings_notice.php
r1539794 r3004114 5 5 * @author Frank Bültge 6 6 */ 7 7 8 if ( ! function_exists( 'add_filter' ) ) { 8 9 echo "Hi there! I'm just a part of plugin, not much I can do when called directly."; 9 10 exit; 10 11 } 11 // always visible 12 13 // always visible. 12 14 add_action( 'load-settings_page_adminimize/adminimize', '_mw_adminimize_add_settings_error' ); 13 15 16 /** 17 * Add custom errer messages for the error notes. 18 */ 14 19 function _mw_adminimize_add_settings_error() { 15 20 -
adminimize/trunk/inc-setup/dashboard.php
r2341194 r3004114 152 152 foreach ( (array) $data as $widget => $value ) { 153 153 154 $value['title'] = ($value['title'] == FALSE) ? [] : $value['title']; 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'])) { 155 161 $value['title'] = ''; 156 162 } -
adminimize/trunk/inc-setup/meta-boxes.php
r1539794 r3004114 39 39 } 40 40 41 function _mw_adminimize_get_meta_boxes( $post_type = NULL, $context = 'advanced' ) {41 function _mw_adminimize_get_meta_boxes( $post_type = null, $context = 'advanced' ) { 42 42 43 43 $saved_wp_meta_boxes = _mw_adminimize_get_option_value( 'mw_adminimize_meta_boxes_' . $post_type ); … … 46 46 } 47 47 48 function _mw_adminimize_remove_meta_boxes( $ post_type = NULL, $context = 'advanced', $priority = 'default', $id) {48 function _mw_adminimize_remove_meta_boxes( $id, $post_type = null, $context = 'advanced', $priority = 'default' ) { 49 49 50 // @TODO for each about settings50 // @TODO for each about settings 51 51 remove_meta_box( $id, $post_type, $context ); 52 52 } -
adminimize/trunk/inc-setup/remove-admin-notices.php
r1768385 r3004114 1 1 <?php 2 2 /** 3 * Remove the admin notices from global options settings3 * Remove the admin notices from the global options settings. 4 4 * 5 * @since 2015-12-09 5 * @package Adminimize 6 * @since 2015-12-09 6 7 */ 8 7 9 if ( ! function_exists( 'add_action' ) ) { 8 10 die( "Hi there! I'm just a part of plugin, not much I can do when called directly." ); -
adminimize/trunk/readme.txt
r2954554 r3004114 1 1 === Adminimize === 2 Contributors: wp_media, krafit, Bueltge 2 Contributors: Bueltge, inpsyde 3 Donate link: https://www.paypal.me/FrankBueltge 3 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 4 5 Requires at least: 4.0 5 Tested up to: 6. 26 Stable tag: 1.11. 96 Tested up to: 6.4 7 Stable tag: 1.11.10 7 8 8 9 Adminimize that lets you hide 'unnecessary' items from the WordPress backend … … 38 39 39 40 == Changelog == 41 = 1.11.10 (2023-11-23) = 42 * Fix access for global variable query 43 40 44 = 1.11.9 (2022-12-09) = 41 * Fix Settings after JSON Import , #155, Probs @borsodigerii42 * Fix title of plugins there get a narray instead string, #153, Probs @denarie45 * Fix Settings after JSON Import , #155, Probs @borsodigerii 46 * Fix title of plugins there get a array instead string, #153, Probs @denarie 43 47 44 48 = 1.11.8 (2022-07-19) = … … 70 74 71 75 = 1.11.4 (2017-12-14) = 72 * Fixed hide of menu items, if you use custom menu, see [wiki page](https://github.com/ wp-media/Adminimize/wiki/Custom-Menu-Order)76 * Fixed hide of menu items, if you use custom menu, see [wiki page](https://github.com/bueltge/Adminimize/wiki/Custom-Menu-Order) 73 77 * Fixed Import/Export for different server environments. 74 78 * Remove languge file on github, we use always the translation community from wordpress.org … … 87 91 * Change selector to remove footer area. 88 92 * Remove Screenshots on readme page, to big, not helpful. 89 * Added filter hook `adminimize_nopage_access_message` to change the message for no access to a page. see the [wiki](https://github.com/ wp-media/Adminimize/wiki/Filter-Hooks)93 * Added filter hook `adminimize_nopage_access_message` to change the message for no access to a page. see the [wiki](https://github.com/bueltge/Adminimize/wiki/Filter-Hooks) 90 94 91 95 = 1.11.2 (2016-12-04) = … … 495 499 496 500 = License = 497 Good news, this plugin is free for everyone! Since it's released under the GPL, you can use it free of charge on your personal or commercial blog. 501 Good news, this plugin is free for everyone! Since it's released under the GPL, you can use it free of charge on your personal or commercial blog. But if you enjoy this plugin, you can thank me and leave a [small donation](http://bueltge.de/wunschliste/ "Wishliste and Donate") for the time I've spent writing and supporting this plugin. And I really don't want to know how many hours of my life this plugin has already eaten ;) 498 502 499 503 = Translations = 500 You can contribute to this plugin by translating it via [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/adminimize/).504 The plugin comes with various translations, please refer to the [WordPress Codex](http://codex.wordpress.org/Installing_WordPress_in_Your_Language "Installing WordPress in Your Language") for more information about activating the translation. If you want to help to translate the plugin to your language, please have a look at the sitemap.pot file which contains all definitions and may be used with a [gettext](http://www.gnu.org/software/gettext/) editor like [Poedit](http://www.poedit.net/) (Windows) or use, I prefers this, the [translation service from wordpress.org](https://translate.wordpress.org/projects/wp-plugins/adminimize). 501 505 502 506 == Frequently Asked Questions == … … 504 508 See the [entry on the WP community forum](http://wordpress.org/support/topic/328449 "[Plugin: Adminimize] Help with "Your own options" (3 posts)") for help with great function to add custom/own options. 505 509 510 = Post about the plugin with helpful hints = 511 * [wpbeginner.com: How to Hide Unnecessary Items From WordPress Admin with Adminimize](http://www.wpbeginner.com/plugins/how-to-hide-unnecessary-items-from-wordpress-admin-with-adminimize/) 512 * [wptavern.com: Create A Custom WordPress Admin Experience With Adminimize](http://wptavern.com/create-a-custom-wordpress-admin-experience-with-adminimize) 513 506 514 = I love this plugin! How can I show the developer how much I appreciate his work? = 507 Please send a [review](https://wordpress.org/support/view/plugin-reviews/adminimize) .515 Please send a [review](https://wordpress.org/support/view/plugin-reviews/adminimize) and let him know your care or see the [wishlist](http://bueltge.de/wunschliste/ "Wishlist") of the author. Also you can send a [donation](https://www.paypal.me/FrankBueltge).
Note: See TracChangeset
for help on using the changeset viewer.