Changeset 1847453
- Timestamp:
- 03/27/2018 02:40:17 AM (7 years ago)
- Location:
- usgs-stream-flow-data/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
usgs-stream-flow-data/trunk/README.txt
r1824300 r1847453 5 5 Requires at least: 3.7 6 6 Tested up to: 4.9.4 7 Stable tag: 2.5 7 Stable tag: 2.5.1 8 8 License: GPLv2 or later 9 9 License URI: //www.gnu.org/licenses/gpl-2.0.html … … 66 66 67 67 == Changelog == 68 = 2.5.1 = 69 Fixes error with Graph Loading 70 68 71 = 2.5 = 69 72 Updated URL Fetch to use the `wp_remote_get()` function -
usgs-stream-flow-data/trunk/kwcusgs.php
r1824300 r1847453 13 13 * Plugin URI: //wordpress.org/plugins/usgs-stream-flow-data/ 14 14 * Description: USGS Stream Flow Data 15 * Version: 2.5 15 * Version: 2.5.1 16 16 * Author: Chris Kindred 17 17 * Author URI: //www.kindredwebconsulting.com -
usgs-stream-flow-data/trunk/public/class-kwcusgs.php
r1622006 r1847453 19 19 * @var string 20 20 */ 21 const VERSION = '2. 4.1';21 const VERSION = '2.5.1'; 22 22 23 23 /** … … 301 301 $response = wp_remote_get( $url ); 302 302 $data = wp_remote_retrieve_body( $response ); 303 303 304 304 if ( ! $data ) { 305 305 return 'USGS Not Responding.'; … … 351 351 $streamflowdesc = $splitDesc[1]; 352 352 $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() . "'/>"; 354 354 break; 355 355 … … 360 360 $gageheightdesc = $splitDesc[1]; 361 361 $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() . "'/>"; 363 363 break; 364 364 }
Note: See TracChangeset
for help on using the changeset viewer.