From 7c56685a0c1a12ada0341c0a9ea2910c5d9ee043 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Wed, 23 Oct 2024 19:04:10 -0400 Subject: [PATCH] remove `value` as it's unnessecary and breaks php older than 8 --- includes/WPAdmin/Listeners/InstallerListener.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/WPAdmin/Listeners/InstallerListener.php b/includes/WPAdmin/Listeners/InstallerListener.php index 4e7470d..0cc0905 100644 --- a/includes/WPAdmin/Listeners/InstallerListener.php +++ b/includes/WPAdmin/Listeners/InstallerListener.php @@ -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(), )