Make WordPress Core

Ticket #46699: 46699.diff

File 46699.diff, 625 bytes (added by chetan200891, 6 years ago)

Intitial patch to show unique title for site health pages.

  • src/wp-admin/site-health-info.php

    diff --git a/src/wp-admin/site-health-info.php b/src/wp-admin/site-health-info.php
    index 4499381eb9..2a84623f9c 100644
    a b  
    99/** WordPress Administration Bootstrap */
    1010require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
     12$is_site_info = ( isset( $_GET['tab'] ) && 'debug' === $_GET['tab'] );
     13
     14if ( $is_site_info ) {
     15        $title = __( 'Site Info' );
     16} else {
     17        $title = __( 'Site Health' );
     18}
     19
    1220if ( ! current_user_can( 'install_plugins' ) ) {
    1321        wp_die( __( 'Sorry, you are not allowed to access the debug data.' ), '', 403 );
    1422}