From 3320f581f360eaa513e0b340e60fb9ecc094e8b2 Mon Sep 17 00:00:00 2001 From: Dan Q Date: Thu, 21 Sep 2023 14:59:26 +0100 Subject: [PATCH] Make "refresh subscriptions" nonce available to WooCommerce Admin --- plugins/woocommerce/src/Internal/Admin/Settings.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/woocommerce/src/Internal/Admin/Settings.php b/plugins/woocommerce/src/Internal/Admin/Settings.php index 24dc4b60b00..20570de861a 100644 --- a/plugins/woocommerce/src/Internal/Admin/Settings.php +++ b/plugins/woocommerce/src/Internal/Admin/Settings.php @@ -234,6 +234,9 @@ class Settings { $settings['allowMarketplaceSuggestions'] = WC_Marketplace_Suggestions::allow_suggestions(); $settings['connectNonce'] = wp_create_nonce( 'connect' ); $settings['wcpay_welcome_page_connect_nonce'] = wp_create_nonce( 'wcpay-connect' ); + $settings['wc_helper_nonces'] = array( + 'refresh' => wp_create_nonce( 'refresh' ), + ); $settings['features'] = $this->get_features();