Skip to content

Commit

Permalink
Merge pull request #39 from newfold-labs/fix/php-issue
Browse files Browse the repository at this point in the history
remove `value` as it's unnessecary and breaks php older than 8
  • Loading branch information
circlecube authored Oct 23, 2024
2 parents 1d7cb9d + 7c56685 commit 7209d59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/WPAdmin/Listeners/InstallerListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ public function enqueue_installer_react_script() {

wp_add_inline_script(
'nfd-installer-enqueue',
'var nfdInstaller =' . wp_json_encode(
value: array(
'var nfdInstaller = ' . wp_json_encode(
array(
'restUrl' => \get_home_url() . '/index.php?rest_route=',
'pluginInstallHash' => PluginInstaller::rest_get_plugin_install_hash(),
)
Expand Down

0 comments on commit 7209d59

Please sign in to comment.