Latest Tweets Widget - Version 1.0.14

Version Description

  • Timezone fixes
  • Fixed bad status link
  • Checking if APC disabled
  • Added Dutch translations
Download this release

Release Info

Developer timwhitlock
Plugin Icon 128x128 Latest Tweets Widget
Version 1.0.14
Comparing to
See all releases

Code changes from version 1.0.13 to 1.0.14

lang/twitter-api-de_DE.mo CHANGED
Binary file
lang/twitter-api-de_DE.po CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Twitter API (Wordpress)\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: Mon, 29 Jul 2013 10:55:29 +0100\n"
6
- "PO-Revision-Date: Mon, 29 Jul 2013 11:30:02 +0100\n"
7
  "Last-Translator: Tim Whitlock\n"
8
  "Language-Team: Sample Account (free tier)\n"
9
  "Language: German\n"
@@ -11,7 +11,7 @@ msgstr ""
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
- "X-Generator: Loco http://localise.biz\n"
15
  "X-Loco-Source-Locale: en_GB\n"
16
  "X-Loco-Target-Locale: de_DE\n"
17
  "X-Loco-Tagged: \n"
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Twitter API WordPress plugin\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: Mon, 29 Jul 2013 10:55:29 +0100\n"
6
+ "PO-Revision-Date: Tue, 03 Sep 2013 12:02:19 +0100\n"
7
  "Last-Translator: Tim Whitlock\n"
8
  "Language-Team: Sample Account (free tier)\n"
9
  "Language: German\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
+ "X-Generator: Loco https://localise.biz\n"
15
  "X-Loco-Source-Locale: en_GB\n"
16
  "X-Loco-Target-Locale: de_DE\n"
17
  "X-Loco-Tagged: \n"
lang/twitter-api-nl_NL.mo ADDED
Binary file
lang/twitter-api-nl_NL.po ADDED
@@ -0,0 +1,298 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Twitter API WordPress plugin\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: Mon, 29 Jul 2013 10:55:29 +0100\n"
6
+ "PO-Revision-Date: Tue, 03 Sep 2013 12:02:19 +0100\n"
7
+ "Last-Translator: Tim Whitlock\n"
8
+ "Language-Team: Sample Account (free tier)\n"
9
+ "Language: Dutch\n"
10
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
11
+ "MIME-Version: 1.0\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+ "Content-Transfer-Encoding: 8bit\n"
14
+ "X-Generator: Loco https://localise.biz\n"
15
+ "X-Loco-Source-Locale: en_GB\n"
16
+ "X-Loco-Target-Locale: nl_NL\n"
17
+ "X-Loco-Tagged: \n"
18
+ "X-Poedit-SourceCharset: UTF-8"
19
+
20
+ #. asset: Accepted
21
+ msgid "Accepted"
22
+ msgstr "Geaccepteerd"
23
+
24
+ #. asset: Conflict
25
+ msgid "Conflict"
26
+ msgstr "Conflict"
27
+
28
+ #. asset: Continue
29
+ msgid "Continue"
30
+ msgstr "Ga verder"
31
+
32
+ #. asset: Created
33
+ msgid "Created"
34
+ msgstr "Gemaakt"
35
+
36
+ #. asset: Forbidden
37
+ msgid "Forbidden"
38
+ msgstr "Verboden"
39
+
40
+ #. asset: Found
41
+ msgid "Found"
42
+ msgstr "Gevonden"
43
+
44
+ #. asset: Gone
45
+ msgid "Gone"
46
+ msgstr "Weg"
47
+
48
+ #. asset: OK
49
+ msgid "OK"
50
+ msgstr "Ok"
51
+
52
+ #. asset: about-an-hour-ago
53
+ msgid "About an hour ago"
54
+ msgid_plural "About %u hours ago"
55
+ msgstr[0] "Ongeveer 1 uur geleden"
56
+ msgstr[1] "Ongeveer %u uur geleden"
57
+
58
+ #. asset: authenticated-as-x
59
+ msgid "Authenticated as @%s"
60
+ msgstr "Authorizeren als @%s"
61
+
62
+ #. asset: authorization-required
63
+ msgid "Authorization Required"
64
+ msgstr "Authorizatie vereist"
65
+
66
+ #. asset: bad-request
67
+ msgid "Bad Request"
68
+ msgstr "Foute request"
69
+
70
+ #. asset: cannot-enable-twitter-api-cache-without-apc-extens
71
+ msgid "Cannot enable Twitter API cache without APC extension"
72
+ msgstr "Kan de Twitter API Cache niet activeren zonder de APC extensie"
73
+
74
+ #. asset: expectation-failed
75
+ msgid "Expectation Failed"
76
+ msgstr "Verwachting fout"
77
+
78
+ #. asset: gateway-time-out
79
+ msgid "Gateway Time-out"
80
+ msgstr "Gateway time-out"
81
+
82
+ #. asset: http-version-not-supported
83
+ msgid "HTTP Version not supported"
84
+ msgstr "HTTP Versie niet ondersteund"
85
+
86
+ #. asset: invalid-oauth-token
87
+ msgid "Invalid OAuth token"
88
+ msgstr "Ongeldige OAuth token"
89
+
90
+ #. asset: invalid-twitter-parameter
91
+ msgid "Invalid Twitter parameter"
92
+ msgstr "Ongeldige Twitter Parameter"
93
+
94
+ #. asset: just-now
95
+ msgid "Just now"
96
+ msgstr "Zojuist"
97
+
98
+ #. asset: key-required-even-if-secret-is-empty
99
+ msgid "Key required even if secret is empty"
100
+ msgstr "Key vereist ook al is secret leeg"
101
+
102
+ #. asset: latest-tweets
103
+ msgid "Latest Tweets"
104
+ msgstr "Laatste tweets"
105
+
106
+ #. asset: length-required
107
+ msgid "Length Required"
108
+ msgstr "Lengte vereist"
109
+
110
+ #. asset: malformed-response-from-twitter
111
+ msgid "Malformed response from Twitter"
112
+ msgstr "Onjuiste response vanTwitter"
113
+
114
+ #. asset: method-not-allowed
115
+ msgid "Method Not Allowed"
116
+ msgstr "Methode niet toegestaan"
117
+
118
+ #. asset: moved-permanently
119
+ msgid "Moved Permanently"
120
+ msgstr "Permanent verhuisd"
121
+
122
+ #. asset: multiple-choices
123
+ msgid "Multiple Choices"
124
+ msgstr "Multiple keuzes"
125
+
126
+ #. asset: no-content
127
+ msgid "No Content"
128
+ msgstr "Geen inhoud"
129
+
130
+ #. asset: non-authoritative-information
131
+ msgid "Non-Authoritative Information"
132
+ msgstr "Niet-geauthoriseerde informatie"
133
+
134
+ #. asset: not-acceptable
135
+ msgid "Not Acceptable"
136
+ msgstr "Niet acceptabel"
137
+
138
+ #. asset: not-found
139
+ msgid "Not Found"
140
+ msgstr "Niet gevonden"
141
+
142
+ #. asset: not-implemented
143
+ msgid "Not Implemented"
144
+ msgstr "Niet geimplementeerd"
145
+
146
+ #. asset: not-modified
147
+ msgid "Not Modified"
148
+ msgstr "Niet aangepast"
149
+
150
+ #. asset: number-of-tweets
151
+ msgid "Number of tweets"
152
+ msgstr "Aantal tweets"
153
+
154
+ #. asset: partial-content
155
+ msgid "Partial Content"
156
+ msgstr "Gedeeltelijke content"
157
+
158
+ #. asset: payment-required
159
+ msgid "Payment Required"
160
+ msgstr "Betaling vereist"
161
+
162
+ #. asset: plugin-not-yet-authenticated-with-twitter
163
+ msgid "Plugin not yet authenticated with Twitter"
164
+ msgstr "Plugin nog niet geauthoriseerd bij Twitter"
165
+
166
+ #. asset: precondition-failed
167
+ msgid "Precondition Failed"
168
+ msgstr "Precondition fout"
169
+
170
+ #. asset: proxy-authentication-required
171
+ msgid "Proxy Authentication Required"
172
+ msgstr "Proxy authenticatie vereist"
173
+
174
+ #. asset: request-entity-too-large
175
+ msgid "Request Entity Too Large"
176
+ msgstr "Request entiteit te groot"
177
+
178
+ #. asset: request-time-out
179
+ msgid "Request Time-out"
180
+ msgstr "Request time-out"
181
+
182
+ #. asset: request-uri-too-large
183
+ msgid "Request-URI Too Large"
184
+ msgstr "Request-URI te groot"
185
+
186
+ #. asset: requested-range-not-satisfiable
187
+ msgid "Requested range not satisfiable"
188
+ msgstr "Gevraagd bereik niet voldoende"
189
+
190
+ #. asset: reset-content
191
+ msgid "Reset Content"
192
+ msgstr "Content resetten"
193
+
194
+ #. asset: save-settings
195
+ msgid "Save settings"
196
+ msgstr "Instellingen opslaan"
197
+
198
+ #. asset: see-other
199
+ msgid "See Other"
200
+ msgstr "Bekijk andere"
201
+
202
+ #. asset: show-replies
203
+ msgid "Show Replies"
204
+ msgstr "Replys laten zien"
205
+
206
+ #. asset: show-retweets
207
+ msgid "Show Retweets"
208
+ msgstr "Retweets laten zien"
209
+
210
+ #. asset: switching-protocols
211
+ msgid "Switching Protocols"
212
+ msgstr "Protocol wisselen"
213
+
214
+ #. asset: temporary-redirect
215
+ msgid "Temporary Redirect"
216
+ msgstr "TIjdelijke omleiding"
217
+
218
+ #. asset: these-details-are-available-in
219
+ msgid "These details are available in"
220
+ msgstr "Deze details zijn beschikbaar in"
221
+
222
+ #. asset: twitter-api
223
+ msgid "Twitter API"
224
+ msgstr "Twitter API"
225
+
226
+ #. asset: twitter-api-authentication-settings
227
+ msgid "Twitter API Authentication Settings"
228
+ msgstr "Twitter API authenticatie instellingen"
229
+
230
+ #. asset: twitter-api-rate-limit-exceeded
231
+ msgid "Twitter API rate limit exceeded"
232
+ msgstr "Twitter API limiet bereikt"
233
+
234
+ #. asset: twitter-application-is-not-fully-configured
235
+ msgid "Twitter application is not fully configured"
236
+ msgstr "Twitter applicatie is niet volledig geconfigureerd"
237
+
238
+ #. asset: twitter-application-not-fully-configured
239
+ msgid "Twitter application not fully configured"
240
+ msgstr "Twitter apllicatie is niet volledig geconfigureerd"
241
+
242
+ #. asset: twitter-client-not-authenticated
243
+ msgid "Twitter client not authenticated"
244
+ msgstr "Twitter Client niet geauthoriseerd"
245
+
246
+ #. asset: twitter-error-x
247
+ msgid "Twitter error #%d"
248
+ msgstr "Twitter fout #%d"
249
+
250
+ #. asset: twitter-handle
251
+ msgid "Twitter handle"
252
+ msgstr "Twitter naam"
253
+
254
+ #. asset: twitter-is-not-responding
255
+ msgid "Twitter is not responding"
256
+ msgstr "Twitter antwoord niet"
257
+
258
+ #. asset: twitter-is-too-busy-to-respond
259
+ msgid "Twitter is too busy to respond"
260
+ msgstr "Twitter is te druk om te antwoorden"
261
+
262
+ #. asset: twitter-server-error
263
+ msgid "Twitter server error"
264
+ msgstr "Twitter server fout"
265
+
266
+ #. asset: unsupported-media-type
267
+ msgid "Unsupported Media Type"
268
+ msgstr "Ongeldige media type"
269
+
270
+ #. asset: use-proxy
271
+ msgid "Use Proxy"
272
+ msgstr "Gebruik proxy"
273
+
274
+ #. asset: widget-title
275
+ msgid "Widget title"
276
+ msgstr "Titel"
277
+
278
+ #. asset: wordpress-http-request-failure
279
+ msgid "Wordpress HTTP request failure"
280
+ msgstr "Wordpress HTTP Request fout"
281
+
282
+ #. asset: x-minute-ago
283
+ msgid "%u minute ago"
284
+ msgid_plural "%u minutes ago"
285
+ msgstr[0] "1 minuut"
286
+ msgstr[1] "%u minuten"
287
+
288
+ #. asset: yesterday-at
289
+ msgid "Yesterday at"
290
+ msgstr "Gisteren om"
291
+
292
+ #. asset: you-dont-have-permission-to-manage-twitter-api-set
293
+ msgid "You don't have permission to manage Twitter API settings"
294
+ msgstr "Je hebt geen rechten om de Twitter API instellingen aan te passen"
295
+
296
+ #. asset: your-twitter-dashboard
297
+ msgid "your Twitter dashboard"
298
+ msgstr "Twitter Dashboard"
lang/twitter-api-pt_BR.mo CHANGED
Binary file
lang/twitter-api-pt_BR.po CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Twitter API (Wordpress)\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: Mon, 29 Jul 2013 10:55:29 +0100\n"
6
- "PO-Revision-Date: Mon, 29 Jul 2013 11:30:02 +0100\n"
7
  "Last-Translator: Tim Whitlock\n"
8
  "Language-Team: Sample Account (free tier)\n"
9
  "Language: Portuguese (Brazil)\n"
@@ -11,7 +11,7 @@ msgstr ""
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
- "X-Generator: Loco http://localise.biz\n"
15
  "X-Loco-Source-Locale: en_GB\n"
16
  "X-Loco-Target-Locale: pt_BR\n"
17
  "X-Loco-Tagged: \n"
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Twitter API WordPress plugin\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: Mon, 29 Jul 2013 10:55:29 +0100\n"
6
+ "PO-Revision-Date: Tue, 03 Sep 2013 12:02:18 +0100\n"
7
  "Last-Translator: Tim Whitlock\n"
8
  "Language-Team: Sample Account (free tier)\n"
9
  "Language: Portuguese (Brazil)\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
+ "X-Generator: Loco https://localise.biz\n"
15
  "X-Loco-Source-Locale: en_GB\n"
16
  "X-Loco-Target-Locale: pt_BR\n"
17
  "X-Loco-Tagged: \n"
lang/twitter-api-ru_RU.mo CHANGED
Binary file
lang/twitter-api-ru_RU.po CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Twitter API (Wordpress)\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: Mon, 29 Jul 2013 10:55:29 +0100\n"
6
- "PO-Revision-Date: Mon, 29 Jul 2013 11:30:02 +0100\n"
7
  "Last-Translator: Tim Whitlock\n"
8
  "Language-Team: Sample Account (free tier)\n"
9
  "Language: Russian\n"
@@ -12,7 +12,7 @@ msgstr ""
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
- "X-Generator: Loco http://localise.biz\n"
16
  "X-Loco-Source-Locale: en_GB\n"
17
  "X-Loco-Target-Locale: ru_RU\n"
18
  "X-Loco-Tagged: \n"
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Twitter API WordPress plugin\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: Mon, 29 Jul 2013 10:55:29 +0100\n"
6
+ "PO-Revision-Date: Tue, 03 Sep 2013 12:02:19 +0100\n"
7
  "Last-Translator: Tim Whitlock\n"
8
  "Language-Team: Sample Account (free tier)\n"
9
  "Language: Russian\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
+ "X-Generator: Loco https://localise.biz\n"
16
  "X-Loco-Source-Locale: en_GB\n"
17
  "X-Loco-Target-Locale: ru_RU\n"
18
  "X-Loco-Tagged: \n"
lang/twitter-api.pot CHANGED
@@ -2,9 +2,9 @@
2
  #, fuzzy
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Twitter API (Wordpress)\n"
6
  "Report-Msgid-Bugs-To: Tim Whitlock\n"
7
- "POT-Creation-Date: Mon, 29 Jul 2013 11:30:02 +0100\n"
8
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
9
  "Last-Translator: FULL NAME <EMAIL@ADDRESS\n"
10
  "Language-Team: \n"
@@ -13,7 +13,7 @@ msgstr ""
13
  "MIME-Version: 1.0\n"
14
  "Content-Type: text/plain; charset=UTF-8\n"
15
  "Content-Transfer-Encoding: 8bit\n"
16
- "X-Generator: Loco http://localise.biz\n"
17
  "X-Poedit-SourceCharset: UTF-8"
18
 
19
  #. asset: Accepted
2
  #, fuzzy
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Twitter API WordPress plugin\n"
6
  "Report-Msgid-Bugs-To: Tim Whitlock\n"
7
+ "POT-Creation-Date: Tue, 03 Sep 2013 12:02:18 +0100\n"
8
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
9
  "Last-Translator: FULL NAME <EMAIL@ADDRESS\n"
10
  "Language-Team: \n"
13
  "MIME-Version: 1.0\n"
14
  "Content-Type: text/plain; charset=UTF-8\n"
15
  "Content-Transfer-Encoding: 8bit\n"
16
+ "X-Generator: Loco https://localise.biz\n"
17
  "X-Poedit-SourceCharset: UTF-8"
18
 
19
  #. asset: Accepted
lang/update.sh CHANGED
@@ -21,4 +21,4 @@ loco en GB
21
  loco pt BR
22
  loco de DE
23
  loco ru RU
24
-
21
  loco pt BR
22
  loco de DE
23
  loco ru RU
24
+ loco nl NL
latest-tweets.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Latest Tweets
4
  Plugin URI: http://wordpress.org/extend/plugins/latest-tweets-widget/
5
  Description: Provides a sidebar widget showing latest tweets - compatible with the new Twitter API 1.1
6
  Author: Tim Whitlock
7
- Version: 1.0.13
8
  Author URI: http://timwhitlock.info/
9
  */
10
 
@@ -76,17 +76,25 @@ function latest_tweets_render( $screen_name, $count, $rts, $ats ){
76
  }
77
  $params['max_id'] = $max_id;
78
  }
 
 
 
 
 
 
79
  // render each tweet as a blocks of html for the widget list items
80
  $rendered = array();
81
  foreach( $tweets as $tweet ){
82
  extract( $tweet );
83
- $link = esc_html( 'http://twitter.com/'.$screen_name.'/status/'.$id_str);
 
84
  // render nice datetime, unless theme overrides with filter
85
  $date = apply_filters( 'latest_tweets_render_date', $created_at );
86
  if( $date === $created_at ){
87
  function_exists('twitter_api_relative_date') or twitter_api_include('utils');
88
- $date = esc_html( twitter_api_relative_date($created_at) );
89
- $date = '<time datetime="'.$created_at.'">'.$date.'</time>';
 
90
  }
91
  // render and linkify tweet, unless theme overrides with filter
92
  $html = apply_filters('latest_tweets_render_text', $text );
@@ -111,6 +119,10 @@ function latest_tweets_render( $screen_name, $count, $rts, $ats ){
111
  if( $cachettl ){
112
  _twitter_api_cache_set( $cachekey, $rendered, $cachettl );
113
  }
 
 
 
 
114
  return $rendered;
115
  }
116
  catch( Exception $Ex ){
4
  Plugin URI: http://wordpress.org/extend/plugins/latest-tweets-widget/
5
  Description: Provides a sidebar widget showing latest tweets - compatible with the new Twitter API 1.1
6
  Author: Tim Whitlock
7
+ Version: 1.0.14
8
  Author URI: http://timwhitlock.info/
9
  */
10
 
76
  }
77
  $params['max_id'] = $max_id;
78
  }
79
+ // Fix Wordpress's broken timezone implementation
80
+ $wp_timezone = get_option('timezone_string');
81
+ $os_timezone = date_default_timezone_get();
82
+ if( $os_timezone !== $wp_timezone ){
83
+ date_default_timezone_set( $wp_timezone );
84
+ }
85
  // render each tweet as a blocks of html for the widget list items
86
  $rendered = array();
87
  foreach( $tweets as $tweet ){
88
  extract( $tweet );
89
+ $handle = $user['screen_name'] or $handle = $screen_name;
90
+ $link = esc_html( 'http://twitter.com/'.$handle.'/status/'.$id_str);
91
  // render nice datetime, unless theme overrides with filter
92
  $date = apply_filters( 'latest_tweets_render_date', $created_at );
93
  if( $date === $created_at ){
94
  function_exists('twitter_api_relative_date') or twitter_api_include('utils');
95
+ $time = strtotime( $created_at );
96
+ $date = esc_html( twitter_api_relative_date($time) );
97
+ $date = '<time datetime="'.date_i18n( 'Y-m-d H:i:sO', $time ).'">'.$date.'</time>';
98
  }
99
  // render and linkify tweet, unless theme overrides with filter
100
  $html = apply_filters('latest_tweets_render_text', $text );
119
  if( $cachettl ){
120
  _twitter_api_cache_set( $cachekey, $rendered, $cachettl );
121
  }
122
+ // put altered timezone back
123
+ if( $os_timezone !== $wp_timezone ){
124
+ date_default_timezone_set( $os_timezone );
125
+ }
126
  return $rendered;
127
  }
128
  catch( Exception $Ex ){
lib/twitter-api-core.php CHANGED
@@ -16,7 +16,7 @@ define('TWITTER_OAUTH_AUTHENTICATE_URL', 'https://twitter.com/oauth/authenticate
16
 
17
  define('TWITTER_OAUTH_ACCESS_TOKEN_URL', 'https://twitter.com/oauth/access_token');
18
 
19
- define('TWITTER_CACHE_APC', function_exists('apc_fetch') );
20
 
21
 
22
 
16
 
17
  define('TWITTER_OAUTH_ACCESS_TOKEN_URL', 'https://twitter.com/oauth/access_token');
18
 
19
+ define('TWITTER_CACHE_APC', (bool) ini_get('apc.enabled') );
20
 
21
 
22
 
lib/twitter-api.php CHANGED
@@ -147,10 +147,9 @@ if( is_admin() ){
147
  function _twitter_api_init_l10n(){
148
  static $map = array (
149
  'pt_BR' => 'pt_BR',
150
- 'de' => 'de_DE',
151
- 'de_DE' => 'de_DE',
152
- 'ru' => 'ru_RU',
153
- 'ru_RU' => 'ru_RU',
154
  );
155
  if( preg_match('/^([a-z]{2})(?:[\-_\s]([a-z]{2}))?$/i', get_locale(), $r ) ){
156
  $locale = strtolower($r[1]);
147
  function _twitter_api_init_l10n(){
148
  static $map = array (
149
  'pt_BR' => 'pt_BR',
150
+ 'de' => 'de_DE', 'de_DE' => 'de_DE',
151
+ 'ru' => 'ru_RU', 'ru_RU' => 'ru_RU',
152
+ 'nl' => 'nl_NL', 'nl_NL' => 'nl_NL',
 
153
  );
154
  if( preg_match('/^([a-z]{2})(?:[\-_\s]([a-z]{2}))?$/i', get_locale(), $r ) ){
155
  $locale = strtolower($r[1]);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://timwhitlock.info/donate-to-a-project/
4
  Tags: twitter, tweets, oauth, api, rest, api, widget, sidebar
5
  Requires at least: 3.5.1
6
  Tested up to: 3.5.1
7
- Stable tag: 1.0.13
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -75,6 +75,12 @@ Do so at your own risk.
75
 
76
  == Changelog ==
77
 
 
 
 
 
 
 
78
  = 1.0.13 =
79
  * Added Russian translations
80
  * Fixed E_STRICT warning
4
  Tags: twitter, tweets, oauth, api, rest, api, widget, sidebar
5
  Requires at least: 3.5.1
6
  Tested up to: 3.5.1
7
+ Stable tag: 1.0.14
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
75
 
76
  == Changelog ==
77
 
78
+ = 1.0.14 =
79
+ * Timezone fixes
80
+ * Fixed bad status link
81
+ * Checking if APC disabled
82
+ * Added Dutch translations
83
+
84
  = 1.0.13 =
85
  * Added Russian translations
86
  * Fixed E_STRICT warning