Changeset 53950
- Timestamp:
- 08/28/2022 07:15:37 PM (3 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/admin/site-health.js
r50766 r53950 169 169 } 170 170 171 if ( 0 < parseInt( SiteHealth.site_status.issues.critical, 0 ) ) { 172 $( '#health-check-issues-critical' ).removeClass( 'hidden' ); 173 } 174 if ( 0 < parseInt( SiteHealth.site_status.issues.recommended, 0 ) ) { 175 $( '#health-check-issues-recommended' ).removeClass( 'hidden' ); 176 } 177 171 178 $( '.issues', '#health-check-issues-' + issue.status ).append( template( issue ) ); 172 179 } … … 211 218 $circle.css( { strokeDashoffset: pct } ); 212 219 213 if ( 1 > parseInt( SiteHealth.site_status.issues.critical, 0 ) ) {214 $( '#health-check-issues-critical' ).addClass( 'hidden' );215 }216 217 if ( 1 > parseInt( SiteHealth.site_status.issues.recommended, 0 ) ) {218 $( '#health-check-issues-recommended' ).addClass( 'hidden' );219 }220 221 220 if ( 80 <= val && 0 === parseInt( SiteHealth.site_status.issues.critical, 0 ) ) { 222 221 $wrapper.addClass( 'green' ).removeClass( 'orange' ); -
trunk/src/wp-admin/site-health.php
r52385 r53950 234 234 </h2> 235 235 236 <p><?php _e( 'The site health check shows critical information about your WordPress configuration and items that requireyour attention.' ); ?></p>237 238 <div class="site-health-issues-wrapper " id="health-check-issues-critical">236 <p><?php _e( 'The site health check shows information about your WordPress configuration and items that may need your attention.' ); ?></p> 237 238 <div class="site-health-issues-wrapper hidden" id="health-check-issues-critical"> 239 239 <h3 class="site-health-issue-count-title"> 240 240 <?php … … 244 244 </h3> 245 245 246 <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> 247 246 248 <div id="health-check-site-status-critical" class="health-check-accordion issues"></div> 247 249 </div> 248 250 249 <div class="site-health-issues-wrapper " id="health-check-issues-recommended">251 <div class="site-health-issues-wrapper hidden" id="health-check-issues-recommended"> 250 252 <h3 class="site-health-issue-count-title"> 251 253 <?php … … 254 256 ?> 255 257 </h3> 258 259 <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> 256 260 257 261 <div id="health-check-site-status-recommended" class="health-check-accordion issues"></div>
Note: See TracChangeset
for help on using the changeset viewer.