IP : 18.219.125.103Hostname : server86.web-hosting.comKernel : Linux server86.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64Disable Function : None :) OS : Linux
PATH:
/
home/
servlmvm/
./
./
public_html/
wp-admin/
site-health.php/
/
$tabs = array( /* translators: Tab heading for Site Health Status page. */ '' => _x( 'Status', 'Site Health' ), /* translators: Tab heading for Site Health Info page. */ 'debug' => _x( 'Info', 'Site Health' ), );
/** * Filters the extra tabs for the Site Health navigation bar. * * Add a custom page to the Site Health screen, based on a tab slug and label. * The label you provide will also be used as part of the site title. * * @since 5.8.0 * * @param string[] $tabs An associative array of tab labels keyed by their slug. */ $tabs = apply_filters( 'site_health_navigation_tabs', $tabs );
get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => '<p>' . __( 'This screen allows you to obtain a health diagnosis of your site, and displays an overall rating of the status of your installation.' ) . '</p>' . '<p>' . __( 'In the Status tab, you can see critical information about your WordPress configuration, along with anything else that requires your attention.' ) . '</p>' . '<p>' . __( 'In the Info tab, you will find all the details about the configuration of your WordPress site, server, and database. There is also an export feature that allows you to copy all of the information about your site to the clipboard, to help solve problems on your site when obtaining support.' ) . '</p>', ) );
get_current_screen()->set_help_sidebar( '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . '<p>' . __( '<a href="https://wordpress.org/documentation/article/site-health-screen/">Documentation on Site Health tool</a>' ) . '</p>' );
// Start by checking if this is a special request checking for the existence of certain filters. $health_check_site_status->check_wp_version_check_exists();
/* * If there are more than 4 tabs, only output the first 3 inline, * the remaining links will be added to a sub-navigation. */ if ( count( $tabs ) > 4 ) { $tabs_slice = array_slice( $tabs, 0, 3 ); }
<div class="health-check-offscreen-nav"> <?php // Remove the first few entries from the array as being already output. $tabs_slice = array_slice( $tabs, 3 ); foreach ( $tabs_slice as $slug => $label ) { printf( '<a href="%s" class="health-check-tab %s">%s</a>', esc_url( add_query_arg( array( 'tab' => $slug, ), admin_url( 'site-health.php' ) ) ), ( isset( $_GET['tab'] ) && $_GET['tab'] === $slug ? 'active' : '' ), esc_html( $label ) ); } ?> </div> </button> <?php endif; ?> </nav> </div>
<hr class="wp-header-end">
<?php if ( isset( $_GET['tab'] ) && ! empty( $_GET['tab'] ) ) { /** * Fires when outputting the content of a custom Site Health tab. * * This action fires right after the Site Health header, and users are still subject to * the capability checks for the Site Health page to view any custom tabs and their contents. * * @since 5.8.0 * * @param string $tab The slug of the tab that was requested. */ do_action( 'site_health_tab_content', $_GET['tab'] );
require_once ABSPATH . 'wp-admin/admin-footer.php'; return; } else { wp_admin_notice( __( 'The Site Health check requires JavaScript.' ), array( 'type' => 'error', 'additional_classes' => array( 'hide-if-js' ), ) ); ?>
<p><?php _e( 'Critical issues are items that may have a high impact on your sites performance or security, and resolving these issues should be prioritized.' ); ?></p>
<p><?php _e( 'Recommended items are considered beneficial to your site, although not as important to prioritize as a critical issue, they may include improvements to things such as; Performance, user experience, and more.' ); ?></p>
<div class="site-health-issues-wrapper hidden" id="health-check-issues-good"> <h3 class="site-health-issue-count-title"> <?php /* translators: %s: Number of items with no issues. */ printf( _n( '%s item with no issues detected', '%s items with no issues detected', 0 ), '<span class="issue-count">0</span>' ); ?> </h3>