diff --git a/class.plugin-option.php b/class.plugin-option.php index 324f5a4..2c53a35 100644 --- a/class.plugin-option.php +++ b/class.plugin-option.php @@ -36,7 +36,7 @@ function __construct ($details = array()) { } $option_filter = array( - 'default' => FILTER_SANITIZE_STRING, + 'default' => null, 'type' => FILTER_SANITIZE_STRING, 'options' => array( 'filter' => FILTER_SANITIZE_STRING, diff --git a/class.plugin-settings.php b/class.plugin-settings.php index 2990e3c..1116bc4 100644 --- a/class.plugin-settings.php +++ b/class.plugin-settings.php @@ -119,7 +119,7 @@ class Leaflet_Map_Plugin_Settings { 'css_url' => array( 'default'=>'https://unpkg.com/leaflet@%s/dist/leaflet.css', 'type' => 'text', - 'helptext' => 'Save as above.' + 'helptext' => 'Same as above.' ), 'default_attribution' => array( 'default' => "Leaflet; \r\n© OpenStreetMap contributors", diff --git a/shortcodes/class.image-shortcode.php b/shortcodes/class.image-shortcode.php index 2ba6148..d0f2485 100644 --- a/shortcodes/class.image-shortcode.php +++ b/shortcodes/class.image-shortcode.php @@ -36,29 +36,50 @@ class="leaflet-map"