From 1a7864b480455f24bda98782d73a52f0a00b2b53 Mon Sep 17 00:00:00 2001 From: lesion Date: Tue, 7 Jun 2022 21:07:54 +0200 Subject: [PATCH] default instance_url -> WP_GANCIO_DEFAULT_INSTANCEURL --- wp-plugin/settings.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-plugin/settings.php b/wp-plugin/settings.php index d0900540..a7ebc566 100644 --- a/wp-plugin/settings.php +++ b/wp-plugin/settings.php @@ -80,6 +80,9 @@ function wpgancio_options_page() { function wpgancio_instance_url_cb( $args ) { // get the value of the setting we've registered with register_setting() $instance_url = get_option( 'wpgancio_instance_url' ); + if (empty($instance_url)) { + $instance_url = WP_GANCIO_DEFAULT_INSTANCEURL; + } // output the field ?>