Awesome Weather Widget - Version 1.3.4

Version Description

Fixed issue with Location stripping spaces from text cause weather to not get accessed. Thanks @storkontheroof!

Download this release

Release Info

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

Code changes from version 1.3.3 to 1.3.4

awesome-weather.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://halgatewood.com/awesome-weather
5
  Description: A weather widget that actually looks cool
6
  Author: Hal Gatewood
7
  Author URI: http://www.halgatewood.com
8
- Version: 1.3.3
9
 
10
 
11
  FILTERS AVAILABLE:
@@ -127,7 +127,7 @@ function awesome_weather_logic( $atts )
127
  $weather_data['forecast'] = array();
128
 
129
  // NOW
130
- $now_ping = "http://api.openweathermap.org/data/2.5/weather?q=" . $city_name_slug . "&lang=" . $locale . "&units=" . $units;
131
  $now_ping_get = wp_remote_get( $now_ping );
132
 
133
  if( is_wp_error( $now_ping_get ) )
@@ -150,7 +150,7 @@ function awesome_weather_logic( $atts )
150
  // FORECAST
151
  if( $days_to_show != "hide" )
152
  {
153
- $forecast_ping = "http://api.openweathermap.org/data/2.5/forecast/daily?q=" . $city_name_slug . "&lang=" . $locale . "&units=" . $units ."&cnt=7";
154
  $forecast_ping_get = wp_remote_get( $forecast_ping );
155
 
156
  if( is_wp_error( $forecast_ping_get ) )
5
  Description: A weather widget that actually looks cool
6
  Author: Hal Gatewood
7
  Author URI: http://www.halgatewood.com
8
+ Version: 1.3.4
9
 
10
 
11
  FILTERS AVAILABLE:
127
  $weather_data['forecast'] = array();
128
 
129
  // NOW
130
+ $now_ping = "http://api.openweathermap.org/data/2.5/weather?q=" . $location . "&lang=" . $locale . "&units=" . $units;
131
  $now_ping_get = wp_remote_get( $now_ping );
132
 
133
  if( is_wp_error( $now_ping_get ) )
150
  // FORECAST
151
  if( $days_to_show != "hide" )
152
  {
153
+ $forecast_ping = "http://api.openweathermap.org/data/2.5/forecast/daily?q=" . $location . "&lang=" . $locale . "&units=" . $units ."&cnt=7";
154
  $forecast_ping_get = wp_remote_get( $forecast_ping );
155
 
156
  if( is_wp_error( $forecast_ping_get ) )
languages/awesome-weather-pl_PL.pot DELETED
@@ -1,174 +0,0 @@
1
- # Copyright (C) 2013 Awesome Weather Widget
2
- # This file is distributed under the same license as the Awesome Weather Widget package.
3
- msgid ""
4
- msgstr ""
5
- "Project-Id-Version: Awesome Weather Widget 1.3\n"
6
- "Report-Msgid-Bugs-To: http://wordpress.org/tag/awesome-weather\n"
7
- "POT-Creation-Date: 2013-07-23 18:07:09+00:00\n"
8
- "MIME-Version: 1.0\n"
9
- "Content-Type: text/plain; charset=UTF-8\n"
10
- "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2013-08-08 08:30+0100\n"
12
- "Last-Translator: Hal Gatewood <hal@halgatewood.com>\n"
13
- "Language-Team: LANGUAGE <LL@li.org>\n"
14
- "X-Generator: Poedit 1.5.7\n"
15
-
16
- #: awesome-weather.php:64
17
- msgid "C"
18
- msgstr ""
19
-
20
- #: awesome-weather.php:64
21
- msgid "F"
22
- msgstr ""
23
-
24
- #: awesome-weather.php:205
25
- msgid "N"
26
- msgstr ""
27
-
28
- #: awesome-weather.php:206
29
- msgid "NNE"
30
- msgstr ""
31
-
32
- #: awesome-weather.php:207
33
- msgid "NE"
34
- msgstr ""
35
-
36
- #: awesome-weather.php:208
37
- msgid "ENE"
38
- msgstr ""
39
-
40
- #: awesome-weather.php:209
41
- msgid "E"
42
- msgstr ""
43
-
44
- #: awesome-weather.php:210
45
- msgid "ESE"
46
- msgstr ""
47
-
48
- #: awesome-weather.php:211
49
- msgid "SE"
50
- msgstr ""
51
-
52
- #: awesome-weather.php:212
53
- msgid "SSE"
54
- msgstr ""
55
-
56
- #: awesome-weather.php:213
57
- msgid "S"
58
- msgstr ""
59
-
60
- #: awesome-weather.php:214
61
- msgid "SSW"
62
- msgstr ""
63
-
64
- #: awesome-weather.php:215
65
- msgid "SW"
66
- msgstr ""
67
-
68
- #: awesome-weather.php:216
69
- msgid "WSW"
70
- msgstr ""
71
-
72
- #: awesome-weather.php:217
73
- msgid "W"
74
- msgstr ""
75
-
76
- #: awesome-weather.php:218
77
- msgid "WNW"
78
- msgstr ""
79
-
80
- #: awesome-weather.php:219
81
- msgid "NW"
82
- msgstr ""
83
-
84
- #: awesome-weather.php:220
85
- msgid "NNW"
86
- msgstr ""
87
-
88
- #: awesome-weather.php:252
89
- msgid "km/h"
90
- msgstr ""
91
-
92
- #: awesome-weather.php:252
93
- msgid "mph"
94
- msgstr ""
95
-
96
- #: awesome-weather.php:259
97
- msgid "humidity:"
98
- msgstr "wilgotność:"
99
-
100
- #: awesome-weather.php:260
101
- msgid "wind:"
102
- msgstr "wiatr:"
103
-
104
- #: awesome-weather.php:261
105
- msgid "H"
106
- msgstr ""
107
-
108
- #: awesome-weather.php:261
109
- msgid "L"
110
- msgstr ""
111
-
112
- #: awesome-weather.php:294
113
- msgid "extended forecast"
114
- msgstr "rozszerzona prognoza"
115
-
116
- #: awesome-weather.php:316
117
- msgid "No weather information available"
118
- msgstr "Brak danych"
119
-
120
- #: awesome-weather.php:374
121
- msgid "Location:"
122
- msgstr "Lokalizacja:"
123
-
124
- #: awesome-weather.php:375
125
- msgid "(i.e: London,UK or New York City,NY)"
126
- msgstr "(np. Warszawa, Wrocław, Kraków, itd.)"
127
-
128
- #: awesome-weather.php:381
129
- msgid "Override Title:"
130
- msgstr "Tytuł zastępczy:"
131
-
132
- #: awesome-weather.php:386
133
- msgid "Units:"
134
- msgstr "Jednostka:"
135
-
136
- #: awesome-weather.php:392
137
- msgid "Size:"
138
- msgstr "Wielkość:"
139
-
140
- #: awesome-weather.php:401
141
- msgid "Forecast:"
142
- msgstr "Prognoza:"
143
-
144
- #: awesome-weather.php:413
145
- msgid "Background Image:"
146
- msgstr "Tło:"
147
-
148
- #: awesome-weather.php:418
149
- msgid "Hide Stats:"
150
- msgstr "Ukryj statystyki:"
151
-
152
- #: awesome-weather.php:423
153
- msgid "Link to OpenWeatherMap:"
154
- msgstr "Link do OpenWeatherMap:"
155
-
156
- #. Plugin Name of the plugin/theme
157
- msgid "Awesome Weather Widget"
158
- msgstr ""
159
-
160
- #. Plugin URI of the plugin/theme
161
- msgid "http://halgatewood.com/awesome-weather"
162
- msgstr ""
163
-
164
- #. Description of the plugin/theme
165
- msgid "A weather widget that actually looks cool"
166
- msgstr "Najładniejszy widget pogody"
167
-
168
- #. Author of the plugin/theme
169
- msgid "Hal Gatewood"
170
- msgstr ""
171
-
172
- #. Author URI of the plugin/theme
173
- msgid "http://www.halgatewood.com"
174
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -56,6 +56,9 @@ All weather data is provided by http://openweathermap.org and is cached for one
56
 
57
  == Upgrade Notice ==
58
 
 
 
 
59
  = 1.3.3 =
60
  Moved Google Font out of CSS into enqueue
61
 
@@ -100,6 +103,9 @@ Changed API endpoints. Might not find weather without update.
100
 
101
  == Changelog ==
102
 
 
 
 
103
  = 1.3.3 =
104
  Moved Google Font out of CSS into enqueue
105
 
56
 
57
  == Upgrade Notice ==
58
 
59
+ = 1.3.4 =
60
+ Fixed issue with Location stripping spaces from text cause weather to not get accessed. Thanks @storkontheroof!
61
+
62
  = 1.3.3 =
63
  Moved Google Font out of CSS into enqueue
64
 
103
 
104
  == Changelog ==
105
 
106
+ = 1.3.4 =
107
+ Fixed issue with Location stripping spaces from text cause weather to not get accessed. Thanks @storkontheroof!
108
+
109
  = 1.3.3 =
110
  Moved Google Font out of CSS into enqueue
111