Changeset 1437905
- Timestamp:
- 06/16/2016 03:54:58 PM (10 years ago)
- Location:
- national-weather-service-alerts/trunk
- Files:
-
- 4 edited
-
classes/class-nws-alerts.php (modified) (2 diffs)
-
nws-alerts-globals.php (modified) (1 diff)
-
nws-alerts.php (modified) (1 diff)
-
readme.txt (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
national-weather-service-alerts/trunk/classes/class-nws-alerts.php
r1118148 r1437905 194 194 if ($scope === NWS_ALERTS_SCOPE_NATIONAL) { 195 195 // National 196 $nws_alerts_xml_url = 'http ://alerts.weather.gov/cap/us.php?x=0';196 $nws_alerts_xml_url = 'https://alerts.weather.gov/cap/us.php?x=0'; 197 197 } else if ($scope === NWS_ALERTS_SCOPE_STATE) { 198 198 // State 199 $nws_alerts_xml_url = 'http ://alerts.weather.gov/cap/' . $state_abbrev . '.php?x=0';199 $nws_alerts_xml_url = 'https://alerts.weather.gov/cap/' . $state_abbrev . '.php?x=0'; 200 200 } else { 201 201 // Users requested location 202 $nws_alerts_xml_url = 'http ://alerts.weather.gov/cap/wwaatmget.php?x=' . strtoupper($state_abbrev) . 'C' . $county_code . '&y=0';202 $nws_alerts_xml_url = 'https://alerts.weather.gov/cap/wwaatmget.php?x=' . strtoupper($state_abbrev) . 'C' . $county_code . '&y=0'; 203 203 } 204 204 … … 556 556 } 557 557 $classes = array_unique(array_merge($args['default_classes'], $classes)); 558 if (empty($this->entries)) $ args['default_classes'][] = 'nws-alerts-no-entries';558 if (empty($this->entries)) $classes[] = 'nws-alerts-no-entries'; 559 559 560 560 // Heading settings -
national-weather-service-alerts/trunk/nws-alerts-globals.php
r1118148 r1437905 7 7 8 8 // NWS Alerts Version Information 9 define('NWS_ALERTS_VERSION', '1.3. 0');9 define('NWS_ALERTS_VERSION', '1.3.1'); 10 10 define('NWS_ALERTS_MIN_WP_VERSION', '3.1'); 11 11 define('NWS_ALERTS_MIN_PHP_VERSION', '5'); -
national-weather-service-alerts/trunk/nws-alerts.php
r1118148 r1437905 4 4 * Plugin URI: https://github.com/laubsterboy/nws-alerts 5 5 * Description: Easily add official National Weather Service alerts to your website. 6 * Version: 1.3. 06 * Version: 1.3.1 7 7 * Author: John Russell 8 8 * Author URI: http://www.laubsterboy.com 9 * Copyright: (c) 201 4John Russell9 * Copyright: (c) 2016 John Russell 10 10 * License: GNU General Public License v2.0 11 11 * License URI: http://www.gnu.org/licenses/gpl-2.0.html -
national-weather-service-alerts/trunk/readme.txt
r1118123 r1437905 4 4 Tags: National Weather Service, NWS, Storm Prediction Center, SPC, Alert, Weather, Storm, Severe, Tornado, Thunder, Flood 5 5 Requires at least: 3.1 6 Tested up to: 4. 1.17 Stable tag: 1.3. 06 Tested up to: 4.5 7 Stable tag: 1.3.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 16 16 == Description == 17 17 18 The National Weather Service Alerts plugin allows you to easily display weather alerts on your website. The 19 alerts are pulled directly from the National Weather Service (http://alerts.weather.gov) based on the location 18 The National Weather Service Alerts plugin allows you to easily display weather alerts on your website. The 19 alerts are pulled directly from the National Weather Service (http://alerts.weather.gov) based on the location 20 20 that you specify and are then parsed, sorted, and output to your website. The alerts are then automatically updated using 21 AJAX, based on the severity of the alerts for the specified location. The location can be set by using zipcode, 22 city and state, or state and county. There is also the option to choose the scope of what alerts to include, 21 AJAX, based on the severity of the alerts for the specified location. The location can be set by using zipcode, 22 city and state, or state and county. There is also the option to choose the scope of what alerts to include, 23 23 such as alerts only for your county, alerts only for your state, or alerts for the entire United States. 24 24 … … 34 34 * Shortcode 35 35 * Widget 36 * NWS Alerts settings page for adding the Alerts Bar 36 * NWS Alerts settings page for adding the Alerts Bar 37 37 * Clean html5 markup 38 38 * CSS classes that make it easy to override default styles … … 51 51 * High Wind Warning 52 52 53 *The default weather alert types can be modified using the 'nws_alerts_allowed_alert_types' 53 *The default weather alert types can be modified using the 'nws_alerts_allowed_alert_types' 54 54 and 'nws_alerts_sort_alert_types' filter hooks. 55 55 … … 65 65 1. Lastly, go to the NWS Alerts settings page and click **Build Database Tables**. 66 66 67 **Note that building the database tables used for location searching can take up to a minute to complete, so please be patient. 67 **Note that building the database tables used for location searching can take up to a minute to complete, so please be patient. 68 68 The process is monitored via AJAX and a status bar will update you on the progress of the build process. 69 69 These tables are deleted from the database when the plugin is deactivated, and then deleted, in the WordPress admin Plugins area.** … … 89 89 = I'm seeing the following message: Data Error = 90 90 The plugin will show this message when it is unable to retrieve the Atom feed from the National Weather Service. 91 It is rare for this to happen and when it does it's generally because the Atom feed is temporarily unavailable. 91 It is rare for this to happen and when it does it's generally because the Atom feed is temporarily unavailable. 92 92 Simply refreshing the page should fix the problem. 93 93 … … 107 107 108 108 == Changelog == 109 110 = 1.3.1 = 111 * Fixed: The National Weather Service Public Alerts require the use of https, so the feed urls needed to be updated. 112 * Fixed: A bug that caused the NWS Alerts Bar to display even when there are no alerts. It will now automatically hide if there are no alerts and display when there are active alerts. 109 113 110 114 = 1.3.0 = … … 148 152 == Upgrade Notice == 149 153 154 = 1.3.1 = 155 * Urgent: The National Weather Service Alerts plugin will no longer work until this update is installed, which updates compliance with NWS Public Alert feed urls. 156 150 157 = 1.3.0 = 151 158 * Added support for WordPress Multisite, fixed bugs, display settings now use templates, and the number of alert entries shown can be limited.
Note: See TracChangeset
for help on using the changeset viewer.