Plugin Directory

Changeset 1437905


Ignore:
Timestamp:
06/16/2016 03:54:58 PM (10 years ago)
Author:
laubsterboy
Message:

1.3.1

Location:
national-weather-service-alerts/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • national-weather-service-alerts/trunk/classes/class-nws-alerts.php

    r1118148 r1437905  
    194194        if ($scope === NWS_ALERTS_SCOPE_NATIONAL) {
    195195            // 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';
    197197        } else if ($scope === NWS_ALERTS_SCOPE_STATE) {
    198198            // 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';
    200200        } else {
    201201            // 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';
    203203        }
    204204
     
    556556        }
    557557        $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';
    559559
    560560        // Heading settings
  • national-weather-service-alerts/trunk/nws-alerts-globals.php

    r1118148 r1437905  
    77
    88// NWS Alerts Version Information
    9 define('NWS_ALERTS_VERSION', '1.3.0');
     9define('NWS_ALERTS_VERSION', '1.3.1');
    1010define('NWS_ALERTS_MIN_WP_VERSION', '3.1');
    1111define('NWS_ALERTS_MIN_PHP_VERSION', '5');
  • national-weather-service-alerts/trunk/nws-alerts.php

    r1118148 r1437905  
    44* Plugin URI: https://github.com/laubsterboy/nws-alerts
    55* Description: Easily add official National Weather Service alerts to your website.
    6 * Version: 1.3.0
     6* Version: 1.3.1
    77* Author: John Russell
    88* Author URI: http://www.laubsterboy.com
    9 * Copyright: (c) 2014 John Russell
     9* Copyright: (c) 2016 John Russell
    1010* License: GNU General Public License v2.0
    1111* License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • national-weather-service-alerts/trunk/readme.txt

    r1118123 r1437905  
    44Tags: National Weather Service, NWS, Storm Prediction Center, SPC, Alert, Weather, Storm, Severe, Tornado, Thunder, Flood
    55Requires at least: 3.1
    6 Tested up to: 4.1.1
    7 Stable tag: 1.3.0
     6Tested up to: 4.5
     7Stable tag: 1.3.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1616== Description ==
    1717
    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 
     18The National Weather Service Alerts plugin allows you to easily display weather alerts on your website. The
     19alerts are pulled directly from the National Weather Service (http://alerts.weather.gov) based on the location
    2020that 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, 
     21AJAX, based on the severity of the alerts for the specified location. The location can be set by using zipcode,
     22city and state, or state and county. There is also the option to choose the scope of what alerts to include,
    2323such as alerts only for your county, alerts only for your state, or alerts for the entire United States.
    2424
     
    3434* Shortcode
    3535* Widget
    36 * NWS Alerts settings page for adding the Alerts Bar 
     36* NWS Alerts settings page for adding the Alerts Bar
    3737* Clean html5 markup
    3838* CSS classes that make it easy to override default styles
     
    5151* High Wind Warning
    5252
    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'
    5454and 'nws_alerts_sort_alert_types' filter hooks.
    5555
     
    65651. Lastly, go to the NWS Alerts settings page and click **Build Database Tables**.
    6666
    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.
    6868The process is monitored via AJAX and a status bar will update you on the progress of the build process.
    6969These tables are deleted from the database when the plugin is deactivated, and then deleted, in the WordPress admin Plugins area.**
     
    8989= I'm seeing the following message: Data Error =
    9090The 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. 
     91It is rare for this to happen and when it does it's generally because the Atom feed is temporarily unavailable.
    9292Simply refreshing the page should fix the problem.
    9393
     
    107107
    108108== 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.
    109113
    110114= 1.3.0 =
     
    148152== Upgrade Notice ==
    149153
     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
    150157= 1.3.0 =
    151158* 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.