Make WordPress Core

Ticket #47225: 47225.patch

File 47225.patch, 2.0 KB (added by ramiy, 6 years ago)
  • wp-admin/site-health-info.php

     
    4646        </div>
    4747
    4848        <nav class="health-check-tabs-wrapper hide-if-no-js" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
     49                <?php
     50                /** This action is documented in wp-admin/site-health.php */
     51                do_action( 'site_health_before_tabs' );
     52                ?>
     53
    4954                <a href="<?php echo esc_url( admin_url( 'site-health.php' ) ); ?>" class="health-check-tab">
    5055                        <?php
    5156                        /* translators: tab heading for Site Health Status page */
     
    5964                        _ex( 'Info', 'Site Health' );
    6065                        ?>
    6166                </a>
     67
     68                <?php
     69                /** This action is documented in wp-admin/site-health.php */
     70                do_action( 'site_health_after_tabs' );
     71                ?>
    6272        </nav>
    6373</div>
    6474
  • wp-admin/site-health.php

     
    5151        </div>
    5252
    5353        <nav class="health-check-tabs-wrapper hide-if-no-js" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
     54                <?php
     55                /**
     56                 * Fires before the first navigation item in Site Health screen.
     57                 *
     58                 * Allow developers to add new Site Health tabs before the default items.
     59                 *
     60                 * @since 5.3.0
     61                 */
     62                do_action( 'site_health_before_tabs' );
     63                ?>
     64
    5465                <a href="<?php echo esc_url( admin_url( 'site-health.php' ) ); ?>" class="health-check-tab active" aria-current="true">
    5566                        <?php _e( 'Status' ); ?>
    5667                </a>
     
    5869                <a href="<?php echo esc_url( admin_url( 'site-health.php?tab=debug' ) ); ?>" class="health-check-tab">
    5970                        <?php _e( 'Info' ); ?>
    6071                </a>
     72
     73                <?php
     74                /**
     75                 * Fires after the last navigation item in Site Health screen.
     76                 *
     77                 * Allow developers to add new Site Health tabs after the default items.
     78                 *
     79                 * @since 5.3.0
     80                 */
     81                do_action( 'site_health_after_tabs' );
     82                ?>
    6183        </nav>
    6284</div>
    6385