Skip to content

Commit d0c5210

Browse files
committed
Extra guard condition.
1 parent a4a7c05 commit d0c5210

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

collectors/theme.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ public function tear_down() {
103103
*/
104104
public function action_get_position( $name ) {
105105
$filter = current_filter();
106+
107+
if ( ! $filter ) {
108+
return;
109+
}
110+
106111
$trace = new QM_Backtrace( array(
107112
'ignore_hook' => array(
108113
$filter => true,

0 commit comments

Comments
 (0)