Skip to content

Commit

Permalink
Merge pull request #3 from BrianHenryIE/fix/use-include-rather-than-i…
Browse files Browse the repository at this point in the history
…nclude-once-fix-#2

Use `include` because `include_once` does not actually include on repeated runs
  • Loading branch information
wpalani authored Aug 19, 2024
2 parents 6c37264 + a1ad324 commit 68ba7f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/WPAdmin/Listeners/DataAttrListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function enqueue_data_attr_listener() {

if ( is_readable( $asset_file ) ) {

$asset = include_once $asset_file;
$asset = include $asset_file;

wp_register_script(
'nfd-survey-data-attr-listener',
Expand Down

0 comments on commit 68ba7f0

Please sign in to comment.