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 ) {
288288 return ;
289289 }
290290
291- if ( is_admin () ) {
291+ if ( is_admin () || ! is_singular () ) {
292292 return ;
293293 }
294294
295- if ( ! is_singular ( ) ) {
295+ if ( ! empty ( $ query -> query_vars [ ' type__in ' ] ) ) {
296296 return ;
297297 }
298298
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-
307299 if ( isset ( $ query ->query_vars ['count ' ] ) && true === $ query ->query_vars ['count ' ] ) {
308300 return ;
309301 }
Original file line number Diff line number Diff line change 33 array (
44 'post_id ' => get_the_ID (),
55 'type__in ' => get_webmention_comment_type_names (),
6- 'meta_query ' => array (
7- array (
8- 'key ' => 'protocol ' ,
9- 'compare ' => 'EXISTS ' ,
10- ),
11- ),
126 'status ' => 'approve ' ,
137 )
148);
You can’t perform that action at this time.
0 commit comments