From b73ce21191587460b4027b254316eb8e70c950d8 Mon Sep 17 00:00:00 2001 From: David Shanske Date: Sat, 13 Apr 2019 14:55:43 +0000 Subject: [PATCH] Final version checks --- js/location.js | 2 +- languages/simple-location.pot | 161 +++++++++++++++++++--------------- readme.md | 18 +++- readme.txt | 18 +++- simple-location.php | 4 +- 5 files changed, 126 insertions(+), 77 deletions(-) diff --git a/js/location.js b/js/location.js index c5519fb..a3b185e 100644 --- a/js/location.js +++ b/js/location.js @@ -224,7 +224,7 @@ jQuery( document ).ready( function( $ ) { 'wind_degree', 'weather-visibility', 'pressure', - 'cloudiness', + 'cloudiness' ]; if ( ! confirm( 'Are you sure you want to remove the location details?' ) ) { return; diff --git a/languages/simple-location.pot b/languages/simple-location.pot index 80d3ac7..7b7d7d2 100644 --- a/languages/simple-location.pot +++ b/languages/simple-location.pot @@ -2,9 +2,9 @@ # This file is distributed under the same license as the Simple Location package. msgid "" msgstr "" -"Project-Id-Version: Simple Location 3.6.4\n" +"Project-Id-Version: Simple Location 3.7.0\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/simple-location\n" -"POT-Creation-Date: 2019-04-02 01:17:49+00:00\n" +"POT-Creation-Date: 2019-04-13 14:55:13+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -13,55 +13,72 @@ msgstr "" "Language-Team: LANGUAGE \n" "X-Generator: grunt-wp-i18n 0.5.4\n" -#: includes/class-geo-data.php:67 +#: includes/class-geo-data.php:62 +msgid "Public Location" +msgstr "" + +#: includes/class-geo-data.php:63 +msgid "Private Location" +msgstr "" + +#: includes/class-geo-data.php:81 includes/class-geo-data.php:688 +#: includes/class-loc-config.php:342 includes/class-loc-metabox.php:78 +#: includes/class-loc-metabox.php:90 templates/loc-side-metabox.php:33 +msgid "Location" +msgstr "" + +#: includes/class-geo-data.php:92 includes/class-sloc-weather-widget.php:78 +#: includes/class-weather-provider.php:285 templates/loc-side-metabox.php:34 +#: templates/loc-side-metabox.php:88 +msgid "None" +msgstr "" + +#: includes/class-geo-data.php:108 includes/class-geo-data.php:185 +#: includes/class-geo-data.php:205 msgid "Private" msgstr "" -#: includes/class-geo-data.php:68 +#: includes/class-geo-data.php:109 includes/class-geo-data.php:186 +#: includes/class-geo-data.php:206 msgid "Public" msgstr "" -#: includes/class-geo-data.php:69 +#: includes/class-geo-data.php:110 includes/class-geo-data.php:187 +#: includes/class-geo-data.php:207 msgid "Protected" msgstr "" -#: includes/class-geo-data.php:142 +#: includes/class-geo-data.php:183 msgid "All Posts" msgstr "" -#: includes/class-geo-data.php:143 includes/class-geo-data.php:160 +#: includes/class-geo-data.php:184 includes/class-geo-data.php:204 msgid "With Location" msgstr "" -#: includes/class-geo-data.php:159 +#: includes/class-geo-data.php:203 msgid "All Comments" msgstr "" -#: includes/class-geo-data.php:410 +#: includes/class-geo-data.php:456 msgid "Invalid Input" msgstr "" -#: includes/class-geo-data.php:620 includes/class-location-zones.php:101 +#: includes/class-geo-data.php:666 includes/class-location-zones.php:101 #: templates/loc-user-metabox.php:20 templates/loc-user-metabox.php:24 msgid "Latitude" msgstr "" -#: includes/class-geo-data.php:631 includes/class-location-zones.php:102 +#: includes/class-geo-data.php:677 includes/class-location-zones.php:102 #: templates/loc-user-metabox.php:27 templates/loc-user-metabox.php:31 msgid "Longitude" msgstr "" -#: includes/class-geo-data.php:642 includes/class-loc-config.php:330 -#: includes/class-loc-metabox.php:78 includes/class-loc-metabox.php:90 -#: templates/loc-side-metabox.php:33 -msgid "Location" -msgstr "" - -#: includes/class-geo-data.php:653 +#: includes/class-geo-data.php:699 msgid "Location Visibility" msgstr "" -#: includes/class-geo-data.php:769 +#: includes/class-geo-data.php:815 msgid "m" msgstr "" @@ -93,178 +110,184 @@ msgstr "" msgid "Simple Location" msgstr "" -#: includes/class-loc-config.php:351 +#: includes/class-loc-config.php:386 msgid "API Keys and Settings for Simple Location" msgstr "" -#: includes/class-loc-config.php:372 +#: includes/class-loc-config.php:407 msgid "General Settings" msgstr "" -#: includes/class-loc-config.php:378 +#: includes/class-loc-config.php:413 msgid "Default Display for Location" msgstr "" -#: includes/class-loc-config.php:389 +#: includes/class-loc-config.php:424 msgid "Update Author Last Reported Location on New Post" msgstr "" -#: includes/class-loc-config.php:399 +#: includes/class-loc-config.php:434 +msgid "" +"Automatically lookup location from supported geolocation provider for " +"Micropub posts" +msgstr "" + +#: includes/class-loc-config.php:444 msgid "Unit of Measure" msgstr "" -#: includes/class-loc-config.php:409 +#: includes/class-loc-config.php:454 msgid "Provider Settings" msgstr "" -#: includes/class-loc-config.php:416 +#: includes/class-loc-config.php:461 msgid "Map Provider" msgstr "" -#: includes/class-loc-config.php:422 +#: includes/class-loc-config.php:467 msgid "Provides Static Map Images" msgstr "" -#: includes/class-loc-config.php:428 +#: includes/class-loc-config.php:473 msgid "Geo Provider" msgstr "" -#: includes/class-loc-config.php:434 +#: includes/class-loc-config.php:479 msgid "Looking up an address from coordinates or vice versa" msgstr "" -#: includes/class-loc-config.php:440 +#: includes/class-loc-config.php:485 msgid "Geolocation Provider" msgstr "" -#: includes/class-loc-config.php:446 +#: includes/class-loc-config.php:491 msgid "" "By default this uses your browser to lookup your location but you can " "alternatively tap into a service to get your current location, perhaps from " "your phone" msgstr "" -#: includes/class-loc-config.php:452 +#: includes/class-loc-config.php:497 msgid "Weather Provider" msgstr "" -#: includes/class-loc-config.php:458 +#: includes/class-loc-config.php:503 msgid "Retrieves Weather Data about a Location" msgstr "" -#: includes/class-loc-config.php:465 +#: includes/class-loc-config.php:510 msgid "Map Settings" msgstr "" -#: includes/class-loc-config.php:472 +#: includes/class-loc-config.php:517 msgid "Default Map Width" msgstr "" -#: includes/class-loc-config.php:482 +#: includes/class-loc-config.php:527 msgid "Default Map Height" msgstr "" -#: includes/class-loc-config.php:492 +#: includes/class-loc-config.php:537 msgid "Default Map Zoom" msgstr "" -#: includes/class-loc-config.php:503 +#: includes/class-loc-config.php:548 msgid "Altitude will Display if Above This Height(in meters)" msgstr "" -#: includes/class-loc-config.php:514 +#: includes/class-loc-config.php:559 msgid "Google Style" msgstr "" -#: includes/class-loc-config.php:526 +#: includes/class-loc-config.php:571 msgid "Bing Style" msgstr "" -#: includes/class-loc-config.php:538 +#: includes/class-loc-config.php:583 msgid "Mapbox User" msgstr "" -#: includes/class-loc-config.php:550 +#: includes/class-loc-config.php:595 msgid "Mapbox Style" msgstr "" -#: includes/class-loc-config.php:564 +#: includes/class-loc-config.php:609 msgid "MapQuest Style" msgstr "" -#: includes/class-loc-config.php:577 +#: includes/class-loc-config.php:622 msgid "Weather Settings" msgstr "" -#: includes/class-loc-config.php:583 +#: includes/class-loc-config.php:628 msgid "Providers" msgstr "" -#: includes/class-loc-config.php:590 +#: includes/class-loc-config.php:635 msgid "API Keys" msgstr "" -#: includes/class-loc-config.php:597 +#: includes/class-loc-config.php:642 msgid "APIXU API Key" msgstr "" -#: includes/class-loc-config.php:609 +#: includes/class-loc-config.php:654 msgid "HERE API Key" msgstr "" -#: includes/class-loc-config.php:620 +#: includes/class-loc-config.php:665 msgid "HERE Application ID" msgstr "" -#: includes/class-loc-config.php:632 +#: includes/class-loc-config.php:677 msgid "MapQuest API Key" msgstr "" -#: includes/class-loc-config.php:643 +#: includes/class-loc-config.php:688 msgid "Google Maps API Key" msgstr "" -#: includes/class-loc-config.php:654 +#: includes/class-loc-config.php:699 msgid "Bing API Key" msgstr "" -#: includes/class-loc-config.php:667 +#: includes/class-loc-config.php:712 msgid "Mapbox API Key" msgstr "" -#: includes/class-loc-config.php:679 +#: includes/class-loc-config.php:724 msgid "Dark Sky API Key" msgstr "" -#: includes/class-loc-config.php:691 +#: includes/class-loc-config.php:736 msgid "OpenWeatherMap API Key" msgstr "" -#: includes/class-loc-config.php:704 +#: includes/class-loc-config.php:749 msgid "Compass API Key" msgstr "" -#: includes/class-loc-config.php:717 +#: includes/class-loc-config.php:762 msgid "Compass URL" msgstr "" -#: includes/class-loc-config.php:790 +#: includes/class-loc-config.php:835 msgid "HTML5 Browser Geolocation (requires HTTPS)" msgstr "" -#: includes/class-loc-config.php:814 +#: includes/class-loc-config.php:859 msgid "International(SI)" msgstr "" -#: includes/class-loc-config.php:815 +#: includes/class-loc-config.php:860 msgid "Imperial" msgstr "" -#: includes/class-loc-config.php:841 +#: includes/class-loc-config.php:886 msgid "Simple Location Depends on External Services" msgstr "" -#: includes/class-loc-config.php:852 +#: includes/class-loc-config.php:897 msgid "API keys are required for most services." msgstr "" @@ -444,19 +467,19 @@ msgstr "" msgid "Updated" msgstr "" -#: includes/class-rest-geo.php:257 +#: includes/class-rest-geo.php:256 msgid "Missing Arguments" msgstr "" -#: includes/class-rest-geo.php:280 +#: includes/class-rest-geo.php:279 msgid "Missing Coordinates or Station for Weather Lookup" msgstr "" -#: includes/class-rest-geo.php:300 +#: includes/class-rest-geo.php:299 msgid "This Airport Code was Not Found" msgstr "" -#: includes/class-rest-geo.php:306 +#: includes/class-rest-geo.php:305 msgid "Could Not Determine Timezone" msgstr "" @@ -518,12 +541,6 @@ msgid "" "for none will use latitude and longitude set" msgstr "" -#: includes/class-sloc-weather-widget.php:78 -#: includes/class-weather-provider.php:285 templates/loc-side-metabox.php:34 -#: templates/loc-side-metabox.php:88 -msgid "None" -msgstr "" - #: includes/class-sloc-weather-widget.php:84 msgid "Latitude: " msgstr "" diff --git a/readme.md b/readme.md index 158f4c5..15a7382 100755 --- a/readme.md +++ b/readme.md @@ -1,7 +1,7 @@ # Simple Location # **Contributors:** [dshanske](https://profiles.wordpress.org/dshanske) **Tags:** geolocation, geo, maps, location, weather, indieweb -**Stable tag:** 3.6.4 +**Stable tag:** 3.7.0 **Requires at least:** 4.7 **Tested up to:** 5.1.1 **Requires PHP:** 5.4 @@ -156,6 +156,10 @@ The plugin offers providers for: ## Upgrade Notice ## +### 3.7.0 ### + +This upgrade cleans up some possibly old data in the database when you load the settings page for the plugin. If you have a lot of posts, the load may be slow initially. + ### 3.4.0 ### Hardcoded and filtered options for new providers have been replaced by a provider registration function with the strings and slug for the provider set inside the provider itself. @@ -167,6 +171,18 @@ will now be required to show maps for services that require API keys. ## Changelog ## +### 3.7.0 ( 2019-04-13 ) +* Do not return maps if location is protected +* Set Micropub posts with location to public visibility +* Do not save raw weather data on Micropub +* Enhance post filter to include all visibilities +* Add location visibility column to posts +* Fix storage of timezone on Micropub entries +* Update airport data +* Add bulk edit post location visibility +* Automatically add private location on Micropub post +* Clean up data on loading settings page +### ### 3.6.4 ( 2019-04-01 ) * Fix/update default map styles for Mapbox * Add default map style now available for Bing diff --git a/readme.txt b/readme.txt index 2662bc8..9b38327 100755 --- a/readme.txt +++ b/readme.txt @@ -1,7 +1,7 @@ === Simple Location === Contributors: dshanske Tags: geolocation, geo, maps, location, weather, indieweb -Stable tag: 3.6.4 +Stable tag: 3.7.0 Requires at least: 4.7 Tested up to: 5.1.1 Requires PHP: 5.4 @@ -156,6 +156,10 @@ The plugin offers providers for: == Upgrade Notice == += 3.7.0 = + +This upgrade cleans up some possibly old data in the database when you load the settings page for the plugin. If you have a lot of posts, the load may be slow initially. + = 3.4.0 = Hardcoded and filtered options for new providers have been replaced by a provider registration function with the strings and slug for the provider set inside the provider itself. @@ -167,6 +171,18 @@ will now be required to show maps for services that require API keys. == Changelog == += 3.7.0 ( 2019-04-13 ) +* Do not return maps if location is protected +* Set Micropub posts with location to public visibility +* Do not save raw weather data on Micropub +* Enhance post filter to include all visibilities +* Add location visibility column to posts +* Fix storage of timezone on Micropub entries +* Update airport data +* Add bulk edit post location visibility +* Automatically add private location on Micropub post +* Clean up data on loading settings page + = 3.6.4 ( 2019-04-01 ) * Fix/update default map styles for Mapbox * Add default map style now available for Bing diff --git a/simple-location.php b/simple-location.php index 11f8376..cbdc390 100755 --- a/simple-location.php +++ b/simple-location.php @@ -3,7 +3,7 @@ * Plugin Name: Simple Location * Plugin URI: https://wordpress.org/plugins/simple-location/ * Description: Adds Location to WordPress - * Version: 3.6.4 + * Version: 3.7.0 * Author: David Shanske * Author URI: https://david.shanske.com * Text Domain: simple-location @@ -18,7 +18,7 @@ class Simple_Location_Plugin { - public static $version = '3.6.3'; + public static $version = '3.7.0'; public static function activate() { require_once plugin_dir_path( __FILE__ ) . 'includes/class-geo-data.php';