WordPress.org

Make WordPress Core

Ticket #44363: 44363-2.patch

File 44363-2.patch, 889 bytes (added by jrf, 3 years ago)

Updated patch - essential line had been removed.

  • src/wp-admin/admin.php

    From e5d211ec45727cba2d81baa056e1b65216030f79 Mon Sep 17 00:00:00 2001
    From: jrfnl <663378+jrfnl@users.noreply.github.com>
    Date: Sat, 16 Jun 2018 16:32:15 +0200
    Subject: [PATCH] 44363: Updated patch - necessary line was removed
    
    ---
     src/wp-admin/admin.php | 4 +++-
     1 file changed, 3 insertions(+), 1 deletion(-)
    
    diff --git a/src/wp-admin/admin.php b/src/wp-admin/admin.php
    index a3dab04d3d..7bcdb021c7 100644
    a b if ( isset( $plugin_page ) ) { 
    173173        } else {
    174174                $the_parent = $pagenow;
    175175        }
    176         if ( ! $page_hook = get_plugin_page_hook( $plugin_page, $the_parent ) ) {
     176
     177        $page_hook = get_plugin_page_hook( $plugin_page, $the_parent );
     178        if ( null !== $page_hook ) {
    177179                $page_hook = get_plugin_page_hook( $plugin_page, $plugin_page );
    178180
    179181                // Back-compat for plugins using add_management_page().