Plugin Directory

Changeset 3004114


Ignore:
Timestamp:
12/01/2023 09:03:08 AM (2 years ago)
Author:
Bueltge
Message:

Release new version.

Location:
adminimize/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • adminimize/trunk/adminimize.php

    r2954554 r3004114  
    66 * Domain Path: /languages
    77 * 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 SAS
    9  * Author URI: https://wp-media.me/
    10  * Version:     1.11.9
     8 * Author:      Frank Bültge
     9 * Author URI:  https://bueltge.de/
     10 * Version:     1.11.10
    1111 * License:     GPLv2+
    1212 *
     
    1616 * @author  Frank Bültge <[email protected]>
    1717 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
    18  * @version 2022-12-09
     18 * @version 2023-11-23
    1919 */
    2020
     
    270270function _mw_adminimize_admin_init() {
    271271
    272     global $pagenow, $post_type, $menu, $submenu;
     272    global $pagenow, $menu, $submenu;
    273273
    274274    $post_id = 0;
     
    278278        $post_id = (int) esc_attr( $_POST[ 'post_ID' ] );
    279279    }
    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    }
    282287    if ( ! isset( $current_post_type ) || empty( $current_post_type ) ) {
    283288        $current_post_type = get_post_type( $post_id );
  • adminimize/trunk/inc-options/admin_bar_frontend.php

    r2341194 r3004114  
    8080                if ( ! empty( $admin_bar_frontend_items ) && is_array( $admin_bar_frontend_items ) ) {
    8181                    foreach ( $admin_bar_frontend_items as $key => $value ) {
    82 
     82                        $value = (is_object($value)) ? $value : (object) $value;
    8383                        $is_parent = ! empty( $value->parent );
    8484                        $has_link  = ! empty( $value->href );
  • adminimize/trunk/inc-options/settings_notice.php

    r1539794 r3004114  
    55 * @author     Frank Bültge
    66 */
     7
    78if ( ! function_exists( 'add_filter' ) ) {
    89    echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
    910    exit;
    1011}
    11 // always visible
     12
     13// always visible.
    1214add_action( 'load-settings_page_adminimize/adminimize', '_mw_adminimize_add_settings_error' );
    1315
     16/**
     17 * Add custom errer messages for the error notes.
     18 */
    1419function _mw_adminimize_add_settings_error() {
    1520
  • adminimize/trunk/inc-setup/dashboard.php

    r2341194 r3004114  
    152152            foreach ( (array) $data as $widget => $value ) {
    153153
     154                $value['title'] = ($value['title'] == FALSE) ? [] : $value['title'];
    154155                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'])) {
    155161                    $value['title'] = '';
    156162                }
  • adminimize/trunk/inc-setup/meta-boxes.php

    r1539794 r3004114  
    3939}
    4040
    41 function _mw_adminimize_get_meta_boxes( $post_type = NULL, $context = 'advanced' ) {
     41function _mw_adminimize_get_meta_boxes( $post_type = null, $context = 'advanced' ) {
    4242
    4343    $saved_wp_meta_boxes = _mw_adminimize_get_option_value( 'mw_adminimize_meta_boxes_' . $post_type );
     
    4646}
    4747
    48 function _mw_adminimize_remove_meta_boxes( $post_type = NULL, $context = 'advanced', $priority = 'default', $id ) {
     48function _mw_adminimize_remove_meta_boxes( $id, $post_type = null, $context = 'advanced', $priority = 'default' ) {
    4949
    50     // @TODO foreach about settings
     50    // @TODO for each about settings
    5151    remove_meta_box( $id, $post_type, $context );
    5252}
  • adminimize/trunk/inc-setup/remove-admin-notices.php

    r1768385 r3004114  
    11<?php
    22/**
    3  * Remove the admin notices from global options settings
     3 * Remove the admin notices from the global options settings.
    44 *
    5  * @since  2015-12-09
     5 * @package Adminimize
     6 * @since   2015-12-09
    67 */
     8
    79if ( ! function_exists( 'add_action' ) ) {
    810    die( "Hi there!  I'm just a part of plugin, not much I can do when called directly." );
  • adminimize/trunk/readme.txt

    r2954554 r3004114  
    11=== Adminimize ===
    2 Contributors: wp_media, krafit, Bueltge
     2Contributors: Bueltge, inpsyde
     3Donate link: https://www.paypal.me/FrankBueltge
    34Tags: color, scheme, theme, admin, dashboard, color scheme, plugin, interface, ui, metabox, hide, editor, minimal, menu, customization, interface, administration, lite, light, usability, lightweight, layout, zen
    45Requires at least: 4.0
    5 Tested up to: 6.2
    6 Stable tag: 1.11.9
     6Tested up to: 6.4
     7Stable tag: 1.11.10
    78
    89Adminimize that lets you hide 'unnecessary' items from the WordPress backend
     
    3839
    3940== Changelog ==
     41= 1.11.10 (2023-11-23) =
     42* Fix access for global variable query
     43
    4044= 1.11.9 (2022-12-09) =
    41 * Fix Settings after JSON Import, #155, Probs @borsodigerii
    42 * Fix title of plugins there get an array instead string, #153, Probs @denarie
     45* Fix Settings after JSON Import , #155, Probs @borsodigerii
     46* Fix title of plugins there get a array instead string, #153, Probs @denarie
    4347
    4448= 1.11.8 (2022-07-19) =
     
    7074
    7175= 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)
    7377* Fixed Import/Export for different server environments.
    7478* Remove languge file on github, we use always the translation community from wordpress.org
     
    8791* Change selector to remove footer area.
    8892* 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)
    9094
    9195= 1.11.2 (2016-12-04) =
     
    495499
    496500= 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.
     501Good 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 ;)
    498502
    499503= Translations =
    500 You can contribute to this plugin by translating it via [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/adminimize/).
     504The 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).
    501505
    502506== Frequently Asked Questions ==
     
    504508See 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.
    505509
     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
    506514= 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).
     515Please 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.