芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/timucuy.com/wp-admin/site-health.php
_x( 'Status', 'Site Health' ), /* translators: Tab heading for Site Health Info page. */ 'debug' => _x( 'Info', 'Site Health' ), ); /** * An associated array of 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 array $tabs An associated array of tab slugs and their label. */ $tabs = apply_filters( 'site_health_navigation_tabs', $tabs ); $wrapper_classes = array( 'health-check-tabs-wrapper', 'hide-if-no-js', 'tab-count-' . count( $tabs ), ); $current_tab = ( isset( $_GET['tab'] ) ? $_GET['tab'] : '' ); $title = sprintf( // translators: %s: The currently displayed tab. __( 'Site Health - %s' ), ( isset( $tabs[ $current_tab ] ) ? esc_html( $tabs[ $current_tab ] ) : esc_html( reset( $tabs ) ) ) ); if ( ! current_user_can( 'view_site_health_checks' ) ) { wp_die( __( 'Sorry, you are not allowed to access site health information.' ), '', 403 ); } wp_enqueue_style( 'site-health' ); wp_enqueue_script( 'site-health' ); if ( ! class_exists( 'WP_Site_Health' ) ) { require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php'; } if ( 'update_https' === $action ) { check_admin_referer( 'wp_update_https' ); if ( ! current_user_can( 'update_https' ) ) { wp_die( __( 'Sorry, you are not allowed to update this site to HTTPS.' ), 403 ); } if ( ! wp_is_https_supported() ) { wp_die( __( 'It looks like HTTPS is not supported for your website at this point.' ) ); } $result = wp_update_urls_to_https(); wp_redirect( add_query_arg( 'https_updated', (int) $result, wp_get_referer() ) ); exit; } $health_check_site_status = WP_Site_Health::get_instance(); // 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(); require_once ABSPATH . 'wp-admin/admin-header.php'; ?>
4 ) { $tabs_slice = array_slice( $tabs, 0, 3 ); } foreach ( $tabs_slice as $slug => $label ) { printf( '
%s
', esc_url( add_query_arg( array( 'tab' => $slug, ), admin_url( 'site-health.php' ) ) ), ( $current_tab === $slug ? 'active' : '' ), esc_html( $label ) ); } ?> 4 ) : ?>
$label ) { printf( '
%s
', esc_url( add_query_arg( array( 'tab' => $slug, ), admin_url( 'site-health.php' ) ) ), ( isset( $_GET['tab'] ) && $_GET['tab'] === $slug ? 'active' : '' ), esc_html( $label ) ); } ?>
0' ); ?>
0' ); ?>
0' ); ?>