WordPress.org

Make WordPress Core

Changeset 48500


Ignore:
Timestamp:
07/16/2020 10:13:54 PM (4 months ago)
Author:
whyisjake
Message:

Administration: Fix an index inconsistency in get_admin_page_title() function.

Ensure that get_admin_page_title() returns a value from pages registered using add_menu_page().

Fixes #46081.

Props grapestain, valentinbora, SergeyBiryukov, audrasjb.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin.php

    r48477 r48500  
    19571957                    $title = $menu_array[3];
    19581958                    return $menu_array[3];
    1959                 } elseif ( isset( $plugin_page ) && ( $plugin_page == $menu_array[2] ) && ( $hook == $menu_array[3] ) ) {
     1959                } elseif ( isset( $plugin_page ) && ( $plugin_page == $menu_array[2] ) && ( $hook == $menu_array[5] ) ) {
    19601960                    $title = $menu_array[3];
    19611961                    return $menu_array[3];
Note: See TracChangeset for help on using the changeset viewer.