WordPress.org

Make WordPress Core

Ticket #46699: 46699.2.diff

File 46699.2.diff, 1.0 KB (added by chetan200891, 5 months ago)

Updated patch.

  • 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..1813af6547 100644
    a b  
    99/** WordPress Administration Bootstrap */
    1010require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
     12$title = __( 'Site Health Info' );
     13
    1214if ( ! current_user_can( 'install_plugins' ) ) {
    1315        wp_die( __( 'Sorry, you are not allowed to access the debug data.' ), '', 403 );
    1416}
  • src/wp-admin/site-health.php

    diff --git a/src/wp-admin/site-health.php b/src/wp-admin/site-health.php
    index 62279e7daa..f3efc23d49 100644
    a b if ( isset( $_GET['tab'] ) && 'debug' === $_GET['tab'] ) { 
    1414/** WordPress Administration Bootstrap */
    1515require_once( dirname( __FILE__ ) . '/admin.php' );
    1616
     17$title = __( 'Site Health Status' );
     18
    1719if ( ! current_user_can( 'install_plugins' ) ) {
    1820        wp_die( __( 'Sorry, you are not allowed to access site health information.' ), '', 403 );
    1921}