From a32336bf050a50a684d2abaa683c5849a28c413f Mon Sep 17 00:00:00 2001 From: Vedant Gandhi Date: Fri, 27 Sep 2024 17:07:06 +0530 Subject: [PATCH] fix: add the default arguments after the options in wp_parse_args. --- admin/class-nginx-helper-admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/class-nginx-helper-admin.php b/admin/class-nginx-helper-admin.php index d400c9e..aeac55d 100644 --- a/admin/class-nginx-helper-admin.php +++ b/admin/class-nginx-helper-admin.php @@ -299,7 +299,7 @@ public function store_default_options() { unset( $default_settings[ $removable_key ] ); } - $diffed_options = wp_parse_args( $default_settings, $options ); + $diffed_options = wp_parse_args( $options, $default_settings ); add_site_option( 'rt_wp_nginx_helper_options', $diffed_options ); }