Make WordPress Core

Ticket #59420: 59420.10.patch

File 59420.10.patch, 1.4 KB (added by viralsampat, 7 months ago)

I have checked above mentioned issue and founds few files. Here, I have added its patch.

  • src/wp-admin/network/settings.php

    diff --git src/wp-admin/network/settings.php src/wp-admin/network/settings.php
    index d162be751b..bc194f3711 100644
    if ( ! current_user_can( 'manage_network_options' ) ) { 
    1919
    2020// Used in the HTML title tag.
    2121$title       = __( 'Network Settings' );
    22 $parent_file = 'settings.php';
    2322
    2423// Handle network admin email change requests.
    2524if ( ! empty( $_GET['network_admin_hash'] ) ) {
  • src/wp-admin/network/site-users.php

    diff --git src/wp-admin/network/site-users.php src/wp-admin/network/site-users.php
    index 54d8f5bd35..7a6853ee85 100644
    if ( ! can_edit_network( $details->site_id ) ) { 
    5050        wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    5151}
    5252
    53 $is_main_site = is_main_site( $id );
    54 
    5553switch_to_blog( $id );
    5654
    5755$action = $wp_list_table->current_action();
  • src/wp-admin/network/sites.php

    diff --git src/wp-admin/network/sites.php src/wp-admin/network/sites.php
    index 2aa2dbff55..5e98cfeb26 100644
    if ( ! current_user_can( 'manage_sites' ) ) { 
    1515}
    1616
    1717$wp_list_table = _get_list_table( 'WP_MS_Sites_List_Table' );
    18 $pagenum       = $wp_list_table->get_pagenum();
     18
    1919
    2020// Used in the HTML title tag.
    2121$title       = __( 'Sites' );
    22 $parent_file = 'sites.php';
    2322
    2423add_screen_option( 'per_page' );
    2524