Plugin Directory

Changeset 1847453


Ignore:
Timestamp:
03/27/2018 02:40:17 AM (7 years ago)
Author:
ChrisMKindred
Message:

Fixes error in image cache bust

Location:
usgs-stream-flow-data/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • usgs-stream-flow-data/trunk/README.txt

    r1824300 r1847453  
    55Requires at least: 3.7
    66Tested up to: 4.9.4
    7 Stable tag: 2.5
     7Stable tag: 2.5.1
    88License: GPLv2 or later
    99License URI: //www.gnu.org/licenses/gpl-2.0.html
     
    6666
    6767== Changelog ==
     68= 2.5.1 =
     69Fixes error with Graph Loading
     70
    6871= 2.5 =
    6972Updated URL Fetch to use the `wp_remote_get()` function
  • usgs-stream-flow-data/trunk/kwcusgs.php

    r1824300 r1847453  
    1313 * Plugin URI:        //wordpress.org/plugins/usgs-stream-flow-data/
    1414 * Description:       USGS Stream Flow Data
    15  * Version:           2.5
     15 * Version:           2.5.1
    1616 * Author:            Chris Kindred
    1717 * Author URI:        //www.kindredwebconsulting.com
  • usgs-stream-flow-data/trunk/public/class-kwcusgs.php

    r1622006 r1847453  
    1919     * @var     string
    2020     */
    21     const VERSION = '2.4.1';
     21    const VERSION = '2.5.1';
    2222
    2323    /**
     
    301301            $response = wp_remote_get( $url );
    302302            $data = wp_remote_retrieve_body( $response );
    303 
     303           
    304304            if ( ! $data ) {
    305305                return 'USGS Not Responding.';
     
    351351                        $streamflowdesc = $splitDesc[1];
    352352                        $thePage .= "<li class='flow'>Flow: $streamflow $streamflowdesc</li>";
    353                         $graphflow = "<img src='https://waterdata.usgs.gov/nwisweb/graph?site_no=$location&parm_cd=00060" . "&" . rand() . "'/>";
     353                        $graphflow = "<img src='https://waterdata.usgs.gov/nwisweb/graph?agency_cd=USGS&site_no=$location&parm_cd=00060" . "&rand=" . rand() . "'/>";
    354354                        break;
    355355
     
    360360                        $gageheightdesc = $splitDesc[1];
    361361                        $thePage .= "<li class='gageheight'>Water Level: $gageheight $gageheightdesc</li>";
    362                         $graphgage = "<img src='https://waterdata.usgs.gov/nwisweb/graph?site_no=$location&parm_cd=00065" . "&" . rand() . "'/>";
     362                        $graphgage = "<img src='https://waterdata.usgs.gov/nwisweb/graph?agency_cd=USGS&site_no=$location&parm_cd=00065" . "&rand=" . rand() . "'/>";
    363363                        break;
    364364                    }
Note: See TracChangeset for help on using the changeset viewer.