Plugin Directory

Changeset 3730077


Ignore:
Timestamp:
10/06/2026 05:54:41 AM (2 weeks ago)
Author:
samiur6688
Message:

Update to version 1.1

Location:
menulookin-admin-menu-debugger
Files:
13 added
3 edited

Legend:

Unmodified
Added
Removed
  • menulookin-admin-menu-debugger/trunk/includes/dashboard.php

    r3721727 r3730077  
    2121        global $submenu;
    2222
    23         $search_term = isset( $_GET['s'] ) ? sanitize_text_field( wp_unslash( $_GET['s'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended 
     23        $search_term = isset( $_GET['s'] ) ? sanitize_text_field( wp_unslash( $_GET['s'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
    2424
    2525        $filtered_submenu = $submenu;
    … …  
    106106                                                                : __( 'Hidden Admin Page', 'menulookin-admin-menu-debugger' );
    107107
    108                                                         $hook_suffix = get_plugin_page_hook( $menu_slug, $parent_slug );
     108                                                        $hook_suffix = ! empty( $parent_slug )
     109                                                                ? get_plugin_page_hook( $menu_slug, $parent_slug )
     110                                                                : false;
    109111
    110112                                                        ?>
  • menulookin-admin-menu-debugger/trunk/menulookin-admin-menu-debugger.php

    r3721727 r3730077  
    33 * Plugin Name: Menulookin Admin Menu Debugger
    44 * Description: Displays WordPress admin submenu menu slugs and hook suffixes for debugging.
    5  * Version: 1.0
     5 * Version: 1.1
    66 * Requires at least: 5.6
    77 * Requires PHP: 7.4
  • menulookin-admin-menu-debugger/trunk/readme.txt

    r3721727 r3730077  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.0
     7Stable tag: 1.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    6363= Why might a hook suffix not be displayed? =
    6464
    65 A hook suffix is displayed when WordPress has an actual hook attached to the corresponding administrative plugin page. If no hook is attached, Menulookin does not display a calculated hook suffix as though it were an actual registered hook.
     65A hook suffix is displayed when WordPress has an actual hook associated with the corresponding administrative plugin page. Hidden admin pages that do not have a registered parent menu are displayed as **Hidden Admin Page**, and Menulookin does not calculate or display a hook suffix for these pages.
    6666
    6767= Does the plugin modify my existing admin menus? =
    … …  
    7979== Changelog ==
    8080
     81= 1.1 =
     82
     83* Hides hook suffixes for hidden admin pages.
     84
    8185= 1.0 =
    8286
Note: See TracChangeset for help on using the changeset viewer.