Awesome Weather Widget - Version 1.5.14

Version Description

  • As per consensus in the support forums, we have changed the forecast temp to use the max temp instead of the generic variable returned from the weather data
Download this release

Release Info

Developer halgatewood
Plugin Icon 128x128 Awesome Weather Widget
Version 1.5.14
Comparing to
See all releases

Code changes from version 1.5.13 to 1.5.14

Files changed (2) hide show
  1. awesome-weather.php +2 -2
  2. readme.txt +3 -0
awesome-weather.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://halgatewood.com/awesome-weather
5
  Description: A weather widget that actually looks cool
6
  Author: Hal Gatewood
7
  Author URI: https://www.halgatewood.com
8
- Version: 1.5.13
9
  Text Domain: awesome-weather
10
  Domain Path: /languages
11
 
@@ -446,7 +446,7 @@ function awesome_weather_logic( $atts )
446
  if( $dt_today >= date('Ymd', $forecast->dt)) continue;
447
 
448
 
449
- $forecast->temp = (int) $forecast->main->temp;
450
  $day_of_week = $days_of_week[ date('w', $forecast->dt) ];
451
  $rtn .= "
452
  <div class=\"awesome-weather-forecast-day\">
5
  Description: A weather widget that actually looks cool
6
  Author: Hal Gatewood
7
  Author URI: https://www.halgatewood.com
8
+ Version: 1.5.14
9
  Text Domain: awesome-weather
10
  Domain Path: /languages
11
 
446
  if( $dt_today >= date('Ymd', $forecast->dt)) continue;
447
 
448
 
449
+ $forecast->temp = (int) $forecast->main->temp_max;
450
  $day_of_week = $days_of_week[ date('w', $forecast->dt) ];
451
  $rtn .= "
452
  <div class=\"awesome-weather-forecast-day\">
readme.txt CHANGED
@@ -91,6 +91,9 @@ The easiest shortcode setting is just: `[awesome-weather location="Oklahoma City
91
 
92
  == Changelog ==
93
 
 
 
 
94
  = 1.5.13 =
95
  * Another attempted fix to the forecast days
96
 
91
 
92
  == Changelog ==
93
 
94
+ = 1.5.14 =
95
+ * As per consensus in the support forums, we have changed the forecast temp to use the max temp instead of the generic variable returned from the weather data
96
+
97
  = 1.5.13 =
98
  * Another attempted fix to the forecast days
99