mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
default instance_url -> WP_GANCIO_DEFAULT_INSTANCEURL
This commit is contained in:
parent
9215987cd2
commit
1a7864b480
1 changed files with 3 additions and 0 deletions
|
@ -80,6 +80,9 @@ function wpgancio_options_page() {
|
||||||
function wpgancio_instance_url_cb( $args ) {
|
function wpgancio_instance_url_cb( $args ) {
|
||||||
// get the value of the setting we've registered with register_setting()
|
// get the value of the setting we've registered with register_setting()
|
||||||
$instance_url = get_option( 'wpgancio_instance_url' );
|
$instance_url = get_option( 'wpgancio_instance_url' );
|
||||||
|
if (empty($instance_url)) {
|
||||||
|
$instance_url = WP_GANCIO_DEFAULT_INSTANCEURL;
|
||||||
|
}
|
||||||
// output the field
|
// output the field
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue