Site health: Improve jQuery selectors so that they don't depend on a specific markup.
Amends [45178]. See #46683. git-svn-id: https://develop.svn.wordpress.org/trunk@45198 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5c9d27cd17
commit
92909607d6
@ -72,7 +72,7 @@ jQuery( document ).ready( function( $ ) {
|
||||
}
|
||||
|
||||
if ( heading ) {
|
||||
$( '> h3', issueWrapper ).html( heading );
|
||||
$( '.site-health-issue-count-title', issueWrapper ).html( heading );
|
||||
}
|
||||
|
||||
$( '.issues', '#health-check-issues-' + issue.status ).append( template( issue ) );
|
||||
|
@ -90,7 +90,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
<p><?php _e( 'The site health check shows critical information about your WordPress configuration and items that require your attention.' ); ?></p>
|
||||
|
||||
<div class="site-health-issues-wrapper" id="health-check-issues-critical">
|
||||
<h3>
|
||||
<h3 class="site-health-issue-count-title">
|
||||
<?php printf( _n( '%s Critical issue', '%s Critical issues', 0 ), '<span class="issue-count">0</span>' ); ?>
|
||||
</h3>
|
||||
|
||||
@ -98,7 +98,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
</div>
|
||||
|
||||
<div class="site-health-issues-wrapper" id="health-check-issues-recommended">
|
||||
<h3>
|
||||
<h3 class="site-health-issue-count-title">
|
||||
<?php printf( _n( '%s Recommended improvement', '%s Recommended improvements', 0 ), '<span class="issue-count">0</span>' ); ?>
|
||||
</h3>
|
||||
|
||||
@ -113,7 +113,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
</div>
|
||||
|
||||
<div class="site-health-issues-wrapper hidden" id="health-check-issues-good">
|
||||
<h3>
|
||||
<h3 class="site-health-issue-count-title">
|
||||
<?php printf( _n( '%s Item with no issues detected', '%s Items with no issues detected', 0 ), '<span class="issue-count">0</span>' ); ?>
|
||||
</h3>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user