Skip to content

Commit

Permalink
fix: add the default arguments after the options in wp_parse_args.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vedant-Gandhi committed Sep 27, 2024
1 parent 3831003 commit a32336b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/class-nginx-helper-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down

0 comments on commit a32336b

Please sign in to comment.