Commit d8b48da59ba for woocommerce

commit d8b48da59ba904304dfd5804cceb3bbce9ded97e
Author: Ann <annchichi@users.noreply.github.com>
Date:   Tue May 12 15:03:08 2026 +0800

    Align admin destructive action red with WordPress 7.0 error red (#64203)

    * Align admin destructive action red with WordPress 7.0 error red

    * Use destructive color token for admin actions

    ---------

    Co-authored-by: Ayush Pahwa <ayush.pahwa@automattic.com>

diff --git a/plugins/woocommerce/changelog/tweak-align-admin-destructive-red b/plugins/woocommerce/changelog/tweak-align-admin-destructive-red
new file mode 100644
index 00000000000..2332a8e7ba4
--- /dev/null
+++ b/plugins/woocommerce/changelog/tweak-align-admin-destructive-red
@@ -0,0 +1,4 @@
+Significance: patch
+Type: tweak
+
+Update destructive action link color on API Keys and Webhooks settings pages to match WordPress 7.0's updated error red.
diff --git a/plugins/woocommerce/includes/admin/settings/views/html-keys-edit.php b/plugins/woocommerce/includes/admin/settings/views/html-keys-edit.php
index 2cc8aaf8328..a893cdb17fd 100644
--- a/plugins/woocommerce/includes/admin/settings/views/html-keys-edit.php
+++ b/plugins/woocommerce/includes/admin/settings/views/html-keys-edit.php
@@ -129,7 +129,7 @@ defined( 'ABSPATH' ) || exit;
 		?>
 		<p class="submit">
 			<?php submit_button( __( 'Save changes', 'woocommerce' ), 'primary', 'update_api_key', false ); ?>
-			<a style="color: #a00; text-decoration: none; margin-left: 10px;" href="<?php echo esc_url( wp_nonce_url( add_query_arg( array( 'revoke-key' => $key_id ), admin_url( 'admin.php?page=wc-settings&tab=advanced&section=keys' ) ), 'revoke' ) ); ?>"><?php esc_html_e( 'Revoke key', 'woocommerce' ); ?></a>
+			<a style="color: var(--wc-destructive, #cc1818); text-decoration: none; margin-left: 10px;" href="<?php echo esc_url( wp_nonce_url( add_query_arg( array( 'revoke-key' => $key_id ), admin_url( 'admin.php?page=wc-settings&tab=advanced&section=keys' ) ), 'revoke' ) ); ?>"><?php esc_html_e( 'Revoke key', 'woocommerce' ); ?></a>
 		</p>
 		<?php
 	}
diff --git a/plugins/woocommerce/includes/admin/settings/views/html-webhooks-edit.php b/plugins/woocommerce/includes/admin/settings/views/html-webhooks-edit.php
index fb61dd1fe15..e4f2e4d12c6 100644
--- a/plugins/woocommerce/includes/admin/settings/views/html-webhooks-edit.php
+++ b/plugins/woocommerce/includes/admin/settings/views/html-webhooks-edit.php
@@ -218,7 +218,7 @@ if ( ! defined( 'ABSPATH' ) ) {
 								'delete-webhook'
 							);
 							?>
-							<a style="color: #a00; text-decoration: none; margin-left: 10px;" href="<?php echo esc_url( $delete_url ); ?>"><?php esc_html_e( 'Delete permanently', 'woocommerce' ); ?></a>
+							<a style="color: var(--wc-destructive, #cc1818); text-decoration: none; margin-left: 10px;" href="<?php echo esc_url( $delete_url ); ?>"><?php esc_html_e( 'Delete permanently', 'woocommerce' ); ?></a>
 						<?php endif; ?>
 					</p>
 				</td>
diff --git a/plugins/woocommerce/includes/class-wc-ajax.php b/plugins/woocommerce/includes/class-wc-ajax.php
index 4e202e177ce..0212f03848c 100644
--- a/plugins/woocommerce/includes/class-wc-ajax.php
+++ b/plugins/woocommerce/includes/class-wc-ajax.php
@@ -2614,7 +2614,7 @@ class WC_AJAX {
 				$response['consumer_key']    = $consumer_key;
 				$response['consumer_secret'] = $consumer_secret;
 				$response['message']         = __( 'API Key generated successfully. Make sure to copy your new keys now as the secret key will be hidden once you leave this page.', 'woocommerce' );
-				$response['revoke_url']      = '<a style="color: #a00; text-decoration: none;" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'revoke-key' => $key_id ), admin_url( 'admin.php?page=wc-settings&tab=advanced&section=keys' ) ), 'revoke' ) ) . '">' . __( 'Revoke key', 'woocommerce' ) . '</a>';
+				$response['revoke_url']      = '<a style="color: var(--wc-destructive, #cc1818); text-decoration: none;" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'revoke-key' => $key_id ), admin_url( 'admin.php?page=wc-settings&tab=advanced&section=keys' ) ), 'revoke' ) ) . '">' . __( 'Revoke key', 'woocommerce' ) . '</a>';
 			}
 		} catch ( Exception $e ) {
 			wp_send_json_error( array( 'message' => $e->getMessage() ) );