From c57a7a33b5c6fb1b2effe12dbc8f423ab0840793 Mon Sep 17 00:00:00 2001 From: Micah Wood Date: Mon, 18 Sep 2023 13:21:36 -0400 Subject: [PATCH] Change how rest nonce is generated --- includes/Runtime.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Runtime.php b/includes/Runtime.php index 054096b..b986362 100644 --- a/includes/Runtime.php +++ b/includes/Runtime.php @@ -55,7 +55,7 @@ public function prepareRuntime() { 'siteUrl' => \get_site_url(), 'siteTitle' => htmlspecialchars_decode( \get_bloginfo( 'name' ) ), 'restUrl' => \esc_url_raw( \get_home_url() . '/index.php?rest_route=' ), - 'restNonce' => wp_create_nonce('wp-rest'), + 'restNonce' => wp_create_nonce('wp_rest'), 'isWoocommerceActive' => is_plugin_active('woocommerce/woocommerce.php'), 'wpVersion' => $wp_version, )