Skip to content

Commit

Permalink
Check that add_action exists before initializing
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x committed Jan 31, 2019
1 parent 102466e commit ca8d932
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Directives.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,6 @@ public function get($name)
}
}

new Directives();
if (function_exists('add_action')) {
new Directives();
}

0 comments on commit ca8d932

Please sign in to comment.