@@ -83,6 +83,7 @@ public function output() {
83
83
echo $ this ->build_filter ( $ type . '-dependents ' , $ data ->dependents , __ ( 'Dependents ' , 'query-monitor ' ) ); // WPCS: XSS ok.
84
84
echo '</th> ' ;
85
85
echo '<th scope="col"> ' . esc_html__ ( 'Version ' , 'query-monitor ' ) . '</th> ' ;
86
+ echo '<th scope="col"> ' . esc_html__ ( 'Extra ' , 'query-monitor ' ) . '</th> ' ;
86
87
echo '</tr> ' ;
87
88
echo '</thead> ' ;
88
89
@@ -102,7 +103,7 @@ public function output() {
102
103
103
104
echo '<tr> ' ;
104
105
printf (
105
- '<td colspan="7 ">%1$s</td> ' ,
106
+ '<td colspan="8 ">%1$s</td> ' ,
106
107
sprintf (
107
108
esc_html ( $ type_label ['total ' ] ),
108
109
'<span class="qm-items-number"> ' . esc_html ( number_format_i18n ( $ data ->counts ['total ' ] ) ) . '</span> '
@@ -152,6 +153,14 @@ protected function dependency_row( $handle, array $asset, $label ) {
152
153
153
154
$ qm_host = ( $ asset ['local ' ] ) ? 'local ' : __ ( 'Other ' , 'query-monitor ' );
154
155
156
+ $ extra = array ();
157
+
158
+ if ( ! empty ( $ asset ['extra ' ] ) ) {
159
+ foreach ( $ asset ['extra ' ] as $ key => $ count ) {
160
+ $ extra [] = $ key . ( is_numeric ( $ count ) ? ' ( ' . $ count . ') ' : '' );
161
+ }
162
+ }
163
+
155
164
$ class = '' ;
156
165
157
166
if ( $ asset ['warning ' ] ) {
@@ -223,6 +232,7 @@ protected function dependency_row( $handle, array $asset, $label ) {
223
232
echo '</td> ' ;
224
233
echo '<td class="qm-ltr qm-highlighter" data-qm-highlight=" ' . esc_attr ( implode ( ' ' , $ highlight_dependents ) ) . '"> ' . implode ( ', ' , array_map ( 'esc_html ' , $ asset ['dependents ' ] ) ) . '</td> ' ;
225
234
echo '<td class="qm-ltr"> ' . esc_html ( $ asset ['ver ' ] ) . '</td> ' ;
235
+ echo '<td> ' . implode ( ', ' , array_map ( 'esc_html ' , $ extra ) ) . '</td> ' ;
226
236
227
237
echo '</tr> ' ;
228
238
}
0 commit comments