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