default instance_url -> WP_GANCIO_DEFAULT_INSTANCEURL

This commit is contained in:
lesion 2022-06-07 21:07:54 +02:00
parent 9215987cd2
commit 1a7864b480
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -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
?>