Ticket #46714: 46714.2.diff
| File 46714.2.diff, 5.0 KB (added by , 7 years ago) |
|---|
-
src/wp-admin/css/site-health.css
271 271 border: 1px solid #e2e4e7; 272 272 } 273 273 274 .health-check-accordion dt { 274 .health-check-accordion-heading { 275 margin: 0; 276 border-top: 1px solid #e2e4e7; 277 font-size: inherit; 278 line-height: inherit; 275 279 font-weight: 600; 276 border-top: 1px solid #e2e4e7;280 color: inherit; 277 281 } 278 282 279 .health-check-accordion dt:first-child {283 .health-check-accordion-heading:first-child { 280 284 border-top: none; 281 285 } 282 286 -
src/wp-admin/site-health-info.php
95 95 <?php endif; ?> 96 96 </div> 97 97 98 <d l id="health-check-debug" role="presentation" class="health-check-accordion">98 <div id="health-check-debug" class="health-check-accordion"> 99 99 100 100 <?php 101 101 foreach ( $info as $section => $details ) { … … 103 103 continue; 104 104 } 105 105 ?> 106 < dt role="heading" aria-level="3">106 <h3 class="health-check-accordion-heading"> 107 107 <button aria-expanded="false" class="health-check-accordion-trigger" aria-controls="health-check-accordion-block-<?php echo esc_attr( $section ); ?>" id="health-check-accordion-heading-<?php echo esc_attr( $section ); ?>" type="button"> 108 <span class="title">109 <?php echo esc_html( $details['label'] ); ?>108 <span class="title"> 109 <?php echo esc_html( $details['label'] ); ?> 110 110 111 <?php if ( isset( $details['show_count'] ) && $details['show_count'] ) : ?>112 <?php printf( '(%d)', count( $details['fields'] ) ); ?>113 <?php endif; ?>114 </span>111 <?php if ( isset( $details['show_count'] ) && $details['show_count'] ) : ?> 112 <?php printf( '(%d)', count( $details['fields'] ) ); ?> 113 <?php endif; ?> 114 </span> 115 115 <span class="icon"></span> 116 116 </button> 117 </ dt>117 </h3> 118 118 119 <d did="health-check-accordion-block-<?php echo esc_attr( $section ); ?>" role="region" aria-labelledby="health-check-accordion-heading-<?php echo esc_attr( $section ); ?>" class="health-check-accordion-panel" hidden="hidden">119 <div id="health-check-accordion-block-<?php echo esc_attr( $section ); ?>" role="region" aria-labelledby="health-check-accordion-heading-<?php echo esc_attr( $section ); ?>" class="health-check-accordion-panel" hidden="hidden"> 120 120 <?php 121 121 if ( isset( $details['description'] ) && ! empty( $details['description'] ) ) { 122 122 printf( … … 161 161 ?> 162 162 </tbody> 163 163 </table> 164 </d d>164 </div> 165 165 <?php } ?> 166 </d l>166 </div> 167 167 </div> 168 168 169 169 <?php -
src/wp-admin/site-health.php
92 92 <span class="issue-count">0</span> <?php _e( 'Critical issues' ); ?> 93 93 </h3> 94 94 95 <d l id="health-check-site-status-critical" role="presentation" class="health-check-accordion issues"></dl>95 <div id="health-check-site-status-critical" class="health-check-accordion issues"></div> 96 96 </div> 97 97 98 98 <div class="site-health-issues-wrapper" id="health-check-issues-recommended"> … … 100 100 <span class="issue-count">0</span> <?php _e( 'Recommended improvements' ); ?> 101 101 </h3> 102 102 103 <d l id="health-check-site-status-recommended" role="presentation" class="health-check-accordion issues"></dl>103 <div id="health-check-site-status-recommended" class="health-check-accordion issues"></div> 104 104 </div> 105 105 </div> 106 106 … … 115 115 <span class="issue-count">0</span> <?php _e( 'Items with no issues detected' ); ?> 116 116 </h3> 117 117 118 <d l id="health-check-site-status-good" role="presentation" class="health-check-accordion issues"></dl>118 <div id="health-check-site-status-good" class="health-check-accordion issues"></div> 119 119 </div> 120 120 </div> 121 121 122 122 <script id="tmpl-health-check-issue" type="text/template"> 123 < dt role="heading" aria-level="4">123 <h4 class="health-check-accordion-heading"> 124 124 <button aria-expanded="false" class="health-check-accordion-trigger" aria-controls="health-check-accordion-block-{{ data.test }}" id="health-check-accordion-heading-{{ data.test }}" type="button"> 125 125 <span class="title">{{ data.label }}</span> 126 126 <span class="badge {{ data.badge.color }}">{{ data.badge.label }}</span> 127 127 <span class="icon"></span> 128 128 </button> 129 </ dt>130 <d did="health-check-accordion-block-{{ data.test }}" aria-labelledby="health-check-accordion-heading-{{ data.test }}" role="region" class="health-check-accordion-panel" hidden="hidden">129 </h4> 130 <div id="health-check-accordion-block-{{ data.test }}" aria-labelledby="health-check-accordion-heading-{{ data.test }}" role="region" class="health-check-accordion-panel" hidden="hidden"> 131 131 {{{ data.description }}} 132 132 <div class="actions"> 133 133 <p class="button-container">{{{ data.actions }}}</p> 134 134 </div> 135 </d d>135 </div> 136 136 </script> 137 137 138 138 <?php