File tree Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -288,22 +288,14 @@ public static function comment_query( $query ) {
288
288
return ;
289
289
}
290
290
291
- if ( is_admin () ) {
291
+ if ( is_admin () || ! is_singular () ) {
292
292
return ;
293
293
}
294
294
295
- if ( ! is_singular ( ) ) {
295
+ if ( ! empty ( $ query -> query_vars [ ' type__in ' ] ) ) {
296
296
return ;
297
297
}
298
298
299
- if ( ! empty ( $ query ->query_vars ['meta_query ' ] ) ) {
300
- $ query_vars = current ( $ query ->query_vars ['meta_query ' ] );
301
-
302
- if ( ! empty ( $ query_vars ['key ' ] ) && 'protocol ' === $ query_vars ['key ' ] ) {
303
- return ;
304
- }
305
- }
306
-
307
299
if ( isset ( $ query ->query_vars ['count ' ] ) && true === $ query ->query_vars ['count ' ] ) {
308
300
return ;
309
301
}
Original file line number Diff line number Diff line change 3
3
array (
4
4
'post_id ' => get_the_ID (),
5
5
'type__in ' => get_webmention_comment_type_names (),
6
- 'meta_query ' => array (
7
- array (
8
- 'key ' => 'protocol ' ,
9
- 'compare ' => 'EXISTS ' ,
10
- ),
11
- ),
12
6
'status ' => 'approve ' ,
13
7
)
14
8
);
You can’t perform that action at this time.
0 commit comments