Smush Image Compression and Optimization - Version 1.7.1

Version Description

  • Add depreciated warnings about Smush.it outage
Download this release

Release Info

Developer WPMUDEV
Plugin Icon 128x128 Smush Image Compression and Optimization
Version 1.7.1
Comparing to
See all releases

Code changes from version 1.7 to 1.7.1

languages/wp_smushit-default.po CHANGED
@@ -1,7 +1,7 @@
1
  # Translation of the WordPress plugin WP Smush.it 1.6.5.2 by WPMU DEV.
2
- # Copyright (C) 2013 WPMU DEV
3
  # This file is distributed under the same license as the WP Smush.it package.
4
- # FIRST AUTHOR <EMAIL@ADDRESS>, 2013.
5
  #
6
  msgid ""
7
  msgstr ""
1
  # Translation of the WordPress plugin WP Smush.it 1.6.5.2 by WPMU DEV.
2
+ # Copyright (C) 2015 WPMU DEV
3
  # This file is distributed under the same license as the WP Smush.it package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2015.
5
  #
6
  msgid ""
7
  msgstr ""
languages/wp_smushit-default.pot CHANGED
@@ -1,272 +1,310 @@
1
- # Translation of the WordPress plugin WP Smush.it 1.6.5.2 by WPMU DEV.
2
- # Copyright (C) 2013 WPMU DEV
3
  # This file is distributed under the same license as the WP Smush.it package.
4
- # FIRST AUTHOR <EMAIL@ADDRESS>, 2013.
5
- #
6
- #, fuzzy
7
  msgid ""
8
  msgstr ""
9
- "Project-Id-Version: WP Smush.it 1.6.5.2\n"
10
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-smushit\n"
11
- "POT-Creation-Date: 2013-09-02 08:12-0500\n"
12
- "PO-Revision-Date: 2013-MO-DA HO:MI+ZONE\n"
13
- "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
- "Language-Team: LANGUAGE <LL@li.org>\n"
15
  "MIME-Version: 1.0\n"
16
- "Content-Type: text/plain; charset=utf-8\n"
17
  "Content-Transfer-Encoding: 8bit\n"
 
 
 
18
 
19
- #: wp-smushit.php:110
20
- msgid "Use Smush.it on upload?"
21
  msgstr ""
22
 
23
- #: wp-smushit.php:113
24
- msgid "How many seconds should we wait for a response from Smush.it?"
25
  msgstr ""
26
 
27
- #: wp-smushit.php:116
28
- msgid "Enable debug processing"
 
 
 
 
 
 
 
 
 
 
29
  msgstr ""
30
 
31
- #: wp-smushit.php:131
 
 
 
 
32
  msgid "Automatically process on upload"
33
  msgstr ""
34
 
35
- #: wp-smushit.php:132
36
  msgid "Do not process on upload"
37
  msgstr ""
38
 
39
- #: wp-smushit.php:136
40
- #, php-format
41
- msgid "Temporarily disabled until %s"
42
  msgstr ""
43
 
44
- #: wp-smushit.php:150
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  msgid ""
46
  "If you are having trouble with the plugin enable this option can reveal some "
47
  "information about your system needed for support."
48
  msgstr ""
49
 
50
- #: wp-smushit.php:195
51
- msgid "Bulk WP Smush.it"
 
 
 
 
 
 
52
  msgstr ""
53
 
54
- #: wp-smushit.php:199
 
 
 
 
55
  msgid "<p>You don't appear to have uploaded any images yet.</p>"
56
  msgstr ""
57
 
58
- #: wp-smushit.php:203
59
- msgid ""
60
- "<p>This tool will run all of the images in your media library through the WP "
61
- "Smush.it web service. Any image already processed will not be reprocessed. "
62
- "Any new images or unsuccessful attempts will be processed.</p>"
63
  msgstr ""
64
 
65
- #: wp-smushit.php:204
66
  msgid ""
67
- "<p>As part of the Yahoo! Smush.it API this plugin wil provide a URL to each "
68
- "of your images to be processed. The Yahoo! service will download the image "
69
- "via the URL. The Yahoo Smush.it service will then return a URL to this "
70
- "plugin of the new version of the image. This image will be downloaded and "
71
- "replace the original image on your server.</p>"
72
  msgstr ""
73
 
74
- #: wp-smushit.php:206
75
- msgid "<p>Limitations of using the Yahoo Smush.it API</p>"
 
 
76
  msgstr ""
77
 
78
- #: wp-smushit.php:209
79
  msgid ""
80
- "The image MUST be less than 1 megabyte in size. This is a limit of the "
81
- "Yahoo! service not this plugin."
82
  msgstr ""
83
 
84
- #: wp-smushit.php:210
85
  msgid ""
86
- "The image MUST be accessible via a non-https URL. The Yahoo! Smush.it "
87
- "service will not handle https:// image URLs. This is a limit of the Yahoo! "
88
- "service not this plugin."
89
  msgstr ""
90
 
91
- #: wp-smushit.php:211
92
  msgid ""
93
- "The image MUST publicly accessible server. As the Yahoo! Smush.it service "
94
- "needs to download the image via a URL the image needs to be on a public "
95
- "server and not a local development system. This is a limit of the "
96
- "Yahoo! service not this plugin."
97
  msgstr ""
98
 
99
- #: wp-smushit.php:212
100
- msgid ""
101
- "The image MUST be local to the site. This plugin cannot update images stored "
102
- "on Content Delivery Networks (CDN)"
103
  msgstr ""
104
 
105
- #: wp-smushit.php:215
106
- #, php-format
107
  msgid ""
108
- "<p><strong>This is an experimental feature.</strong> Please post any "
109
- "feedback to the %s.</p>"
110
  msgstr ""
111
 
112
- #: wp-smushit.php:215
113
- msgid "WordPress WP Smush.it forums"
 
 
114
  msgstr ""
115
 
116
- #: wp-smushit.php:219
117
- #, php-format
118
  msgid ""
119
- "<p>We found %d images in your media library. Be forewarned, <strong>it will "
120
- "take <em>at least</em> %d minutes</strong> to process all these images if "
121
- "they have never been smushed before.</p>"
122
  msgstr ""
123
 
124
- #: wp-smushit.php:222
125
- msgid "Run all my images through WP Smush.it right now"
126
  msgstr ""
127
 
128
- #: wp-smushit.php:223
129
  msgid ""
130
  "<p><em>N.B. If your server <tt>gzip</tt>s content you may not see the "
131
  "progress updates as your files are processed.</em></p>"
132
  msgstr ""
133
 
134
- #: wp-smushit.php:226
135
  msgid ""
136
- "<p>DEBUG mode is currently enabled. To disable see the Settings > Media page."
137
- "</p>"
138
  msgstr ""
139
 
140
- #: wp-smushit.php:234
141
- msgid "Cheatin&#8217; uh?"
 
 
142
  msgstr ""
143
 
144
- #: wp-smushit.php:241
145
- #, php-format
146
- msgid "<p>Processing <strong>%s</strong>&hellip;<br />"
147
  msgstr ""
148
 
149
- #: wp-smushit.php:251 wp-smushit.php:409
150
- msgid "No savings"
 
 
 
 
 
 
 
 
 
151
  msgstr ""
152
 
153
- #: wp-smushit.php:252 wp-smushit.php:264
154
- msgid "<strong>already smushed</strong>"
155
  msgstr ""
156
 
157
- #: wp-smushit.php:280
158
- msgid "<hr /></p>Smush.it finished processing.</p>"
159
  msgstr ""
160
 
161
- #: wp-smushit.php:293
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
162
  msgid "You don't have permission to work with uploaded files."
163
  msgstr ""
164
 
165
- #: wp-smushit.php:297
166
  msgid "No attachment ID was provided."
167
  msgstr ""
168
 
169
- #: wp-smushit.php:323
170
  msgid "File path is empty"
171
  msgstr ""
172
 
173
- #: wp-smushit.php:327
174
  msgid "File URL is empty"
175
  msgstr ""
176
 
177
- #: wp-smushit.php:333
178
- msgid "Did not smush due to previous errors"
179
  msgstr ""
180
 
181
- #: wp-smushit.php:338
182
- #, php-format
183
- msgid "Could not find <span class='code'>%s</span>"
184
  msgstr ""
185
 
186
- #: wp-smushit.php:343
187
- #, php-format
188
- msgid "<span class='code'>%s</span> is not writable"
189
  msgstr ""
190
 
191
- #: wp-smushit.php:348
192
- #, php-format
193
  msgid ""
194
- "<span style=\"color:#FF0000;\">Skipped (%s) Unable to Smush due to Yahoo 1mb "
195
- "size limits. See <a href=\"http://developer.yahoo.com/yslow/smushit/faq."
196
- "html#faq_restrict\">FAQ</a></span>"
197
  msgstr ""
198
 
199
- #: wp-smushit.php:359
200
- #, php-format
201
  msgid ""
202
- "<span class='code'>%s</span> must be within the website directory (<span "
203
- "class='code'>%s</span>)"
204
  msgstr ""
205
 
206
- #: wp-smushit.php:371
207
- #, php-format
208
- msgid ""
209
- "<span class='code'>%s</span> must be within the website home URL (<span "
210
- "class='code'>%s</span>)"
211
  msgstr ""
212
 
213
- #: wp-smushit.php:382
214
- msgid "Error posting to Smush.it"
215
  msgstr ""
216
 
217
- #: wp-smushit.php:388 wp-smushit.php:406
218
- msgid "Bad response from Smush.it"
219
  msgstr ""
220
 
221
- #: wp-smushit.php:412
222
  msgid "Smush.it error: "
223
  msgstr ""
224
 
225
- #: wp-smushit.php:412
226
  msgid "unknown error"
227
  msgstr ""
228
 
229
- #: wp-smushit.php:413
230
- #, php-format
231
  msgid ""
232
  " while processing <span class='code'>%s</span> (<span class='code'>%s</span>)"
233
  msgstr ""
234
 
235
- #: wp-smushit.php:429
236
- #, php-format
237
  msgid "Error downloading file (%s)"
238
  msgstr ""
239
 
240
- #: wp-smushit.php:433
241
- #, php-format
242
- msgid "Unable to locate Smuch.it downloaded file (%s)"
243
  msgstr ""
244
 
245
- #: wp-smushit.php:447
246
- #, php-format
247
  msgid "Reduced by %01.1f%% (%s)"
248
  msgstr ""
249
 
250
- #: wp-smushit.php:545
251
  msgid "WP Smush.it requires WordPress 2.8 or greater"
252
  msgstr ""
253
 
254
- #: wp-smushit.php:585
255
  msgid "Re-smush"
256
  msgstr ""
257
 
258
- #: wp-smushit.php:588
259
  msgid "Not processed"
260
  msgstr ""
261
 
262
- #: wp-smushit.php:591
263
  msgid "Smush.it now!"
264
  msgstr ""
265
 
266
- #. Plugin Name of the plugin/theme
267
- msgid "WP Smush.it"
268
- msgstr ""
269
-
270
  #. Plugin URI of the plugin/theme
271
  msgid "http://wordpress.org/extend/plugins/wp-smushit/"
272
  msgstr ""
1
+ # Translation of the WordPress plugin WP Smush.it 1.7 by WPMU DEV.
2
+ # Copyright (C) 2015 WP Smush.it
3
  # This file is distributed under the same license as the WP Smush.it package.
 
 
 
4
  msgid ""
5
  msgstr ""
6
+ "Project-Id-Version: WP Smush.it 1.7\n"
7
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-smushit\n"
8
+ "POT-Creation-Date: 2015-01-14 08:39:56+00:00\n"
 
 
 
9
  "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "PO-Revision-Date: 2015-MO-DA HO:MI+ZONE\n"
13
+ "Last-Translator: Umesh Kumar <umeshsingla05@gmail.com>\n"
14
+ "Language-Team: WPMU Dev <http://premium.wpmudev.org/>\n"
15
 
16
+ #: lib/class-wp-smushit-admin.php:91
17
+ msgid "Smushing in Progress"
18
  msgstr ""
19
 
20
+ #: lib/class-wp-smushit-admin.php:92
21
+ msgid "All done!"
22
  msgstr ""
23
 
24
+ #. #-#-#-#-# plugin.pot (WP Smush.it 1.7) #-#-#-#-#
25
+ #. Plugin Name of the plugin/theme
26
+ #: lib/class-wp-smushit-admin.php:112
27
+ msgid "WP Smush.it"
28
+ msgstr ""
29
+
30
+ #: lib/class-wp-smushit-admin.php:117
31
+ msgid "Settings"
32
+ msgstr ""
33
+
34
+ #: lib/class-wp-smushit-admin.php:145
35
+ msgid "Temporarily disabled until %s"
36
  msgstr ""
37
 
38
+ #: lib/class-wp-smushit-admin.php:162
39
+ msgid "Smush images on upload"
40
+ msgstr ""
41
+
42
+ #: lib/class-wp-smushit-admin.php:165
43
  msgid "Automatically process on upload"
44
  msgstr ""
45
 
46
+ #: lib/class-wp-smushit-admin.php:166
47
  msgid "Do not process on upload"
48
  msgstr ""
49
 
50
+ #: lib/class-wp-smushit-admin.php:176
51
+ msgid "API Timeout"
 
52
  msgstr ""
53
 
54
+ #: lib/class-wp-smushit-admin.php:182
55
+ msgid "Enforce home URL"
56
+ msgstr ""
57
+
58
+ #: lib/class-wp-smushit-admin.php:185
59
+ msgid ""
60
+ "By default the plugin will enforce that the image URL is the same domain as "
61
+ "the home. If you are using a sub-domain pointed to this same host or an "
62
+ "external Content Delivery Network (CDN) you want to unset this option."
63
+ msgstr ""
64
+
65
+ #: lib/class-wp-smushit-admin.php:189
66
+ msgid "Smushit Debug"
67
+ msgstr ""
68
+
69
+ #: lib/class-wp-smushit-admin.php:192
70
  msgid ""
71
  "If you are having trouble with the plugin enable this option can reveal some "
72
  "information about your system needed for support."
73
  msgstr ""
74
 
75
+ #: lib/class-wp-smushit-admin.php:200
76
+ msgid "Save Changes"
77
+ msgstr ""
78
+
79
+ #: lib/class-wp-smushit-admin.php:271
80
+ msgid ""
81
+ " %d of those images %s <b>over 1Mb</b> and <b>can not be compressed using "
82
+ "the free version of the plugin.</b>"
83
  msgstr ""
84
 
85
+ #: lib/class-wp-smushit-admin.php:277
86
+ msgid "Smush in Bulk"
87
+ msgstr ""
88
+
89
+ #: lib/class-wp-smushit-admin.php:281
90
  msgid "<p>You don't appear to have uploaded any images yet.</p>"
91
  msgstr ""
92
 
93
+ #: lib/class-wp-smushit-admin.php:284
94
+ msgid "Upgrade to WP Smush PRO"
 
 
 
95
  msgstr ""
96
 
97
+ #: lib/class-wp-smushit-admin.php:285
98
  msgid ""
99
+ "<h4>WP Smush.it uses Yahoo! Smush.it API. As such, there are a few "
100
+ "restrictions:</h4>"
 
 
 
101
  msgstr ""
102
 
103
+ #: lib/class-wp-smushit-admin.php:288
104
+ msgid ""
105
+ "Each image MUST be less than 1Mb in size. %s and use our servers for images "
106
+ "upto 5Mb."
107
  msgstr ""
108
 
109
+ #: lib/class-wp-smushit-admin.php:289
110
  msgid ""
111
+ "Images MUST be accessible via a non-https URL. The Yahoo! Smush.it service "
112
+ "will not handle https:// image URLs. %s to allow https URLs"
113
  msgstr ""
114
 
115
+ #: lib/class-wp-smushit-admin.php:290
116
  msgid ""
117
+ "Smushing images in bulk can sometimes cause time-outs. %s and use our "
118
+ "reliable server to prevent time-outs."
 
119
  msgstr ""
120
 
121
+ #: lib/class-wp-smushit-admin.php:293
122
  msgid ""
123
+ "<strong>WP Smush PRO</strong> allows you to smush images up to 5Mb.<br /> "
124
+ "Fast, reliable & time-out free. <a href='http://premium.wpmudev.org/projects/"
125
+ "wp-smush-pro'>Find Out more &raquo;</a>"
 
126
  msgstr ""
127
 
128
+ #: lib/class-wp-smushit-admin.php:305
129
+ msgid "<p>We found %d images in your media library. %s </p>"
 
 
130
  msgstr ""
131
 
132
+ #: lib/class-wp-smushit-admin.php:307
 
133
  msgid ""
134
+ "<p><b style='color: red;'>Please beware</b>, <b>smushing a large number of "
135
+ "images can take a long time.</b></p>"
136
  msgstr ""
137
 
138
+ #: lib/class-wp-smushit-admin.php:309
139
+ msgid ""
140
+ "<p><b>You can not leave this page, until all images have been received back, "
141
+ "and you see a success message.</b></p>"
142
  msgstr ""
143
 
144
+ #: lib/class-wp-smushit-admin.php:311
 
145
  msgid ""
146
+ "Click below to smush all your images. Alternatively, you can smush your "
147
+ "images individually or as a bulk action from your <a href='%s'>Media "
148
+ "Library</a>"
149
  msgstr ""
150
 
151
+ #: lib/class-wp-smushit-admin.php:318
152
+ msgid "Bulk Smush all my images"
153
  msgstr ""
154
 
155
+ #: lib/class-wp-smushit-admin.php:319
156
  msgid ""
157
  "<p><em>N.B. If your server <tt>gzip</tt>s content you may not see the "
158
  "progress updates as your files are processed.</em></p>"
159
  msgstr ""
160
 
161
+ #: lib/class-wp-smushit-admin.php:322
162
  msgid ""
163
+ "<p>DEBUG mode is currently enabled. To disable uncheck the smushit debug "
164
+ "option.</p>"
165
  msgstr ""
166
 
167
+ #: lib/class-wp-smushit-admin.php:362
168
+ msgid ""
169
+ "Smushing <span id=\"smushed-count\">1</span> of <span id=\"smushing-total\">"
170
+ "%d</span>"
171
  msgstr ""
172
 
173
+ #: lib/class-wp-smushit-admin.php:403
174
+ msgid "Nonce verification failed"
 
175
  msgstr ""
176
 
177
+ #: lib/error_log.php:9
178
+ msgid "Error Log"
179
+ msgstr ""
180
+
181
+ #: lib/error_log.php:13
182
+ msgid "Purge log"
183
+ msgstr ""
184
+
185
+ #: lib/error_log.php:17 lib/error_log.php:25 lib/error_log.php:55
186
+ #: lib/error_log.php:62
187
+ msgid "Date"
188
  msgstr ""
189
 
190
+ #: lib/error_log.php:18 lib/error_log.php:26
191
+ msgid "Function"
192
  msgstr ""
193
 
194
+ #: lib/error_log.php:19 lib/error_log.php:27
195
+ msgid "Image"
196
  msgstr ""
197
 
198
+ #: lib/error_log.php:20 lib/error_log.php:28
199
+ msgid "Info"
200
+ msgstr ""
201
+
202
+ #: lib/error_log.php:56 lib/error_log.php:63
203
+ msgid "User"
204
+ msgstr ""
205
+
206
+ #: lib/error_log.php:57 lib/error_log.php:64
207
+ msgid "Message"
208
+ msgstr ""
209
+
210
+ #: lib/error_log.php:72
211
+ msgid "Unknown"
212
+ msgstr ""
213
+
214
+ #: wp-smushit.php:114
215
  msgid "You don't have permission to work with uploaded files."
216
  msgstr ""
217
 
218
+ #: wp-smushit.php:118
219
  msgid "No attachment ID was provided."
220
  msgstr ""
221
 
222
+ #: wp-smushit.php:146
223
  msgid "File path is empty"
224
  msgstr ""
225
 
226
+ #: wp-smushit.php:150
227
  msgid "File URL is empty"
228
  msgstr ""
229
 
230
+ #: wp-smushit.php:156
231
+ msgid "Did not Smush.it due to previous errors"
232
  msgstr ""
233
 
234
+ #: wp-smushit.php:161
235
+ msgid "ERROR: Could not find <span class='code'>%s</span>"
 
236
  msgstr ""
237
 
238
+ #: wp-smushit.php:166
239
+ msgid "ERROR: <span class='code'>%s</span> is not writable"
 
240
  msgstr ""
241
 
242
+ #: wp-smushit.php:171
 
243
  msgid ""
244
+ "ERROR: <span style=\"color:#FF0000;\">Skipped (%s) Unable to Smush due to "
245
+ "Yahoo 1mb size limits. See <a href=\"http://developer.yahoo.com/yslow/"
246
+ "smushit/faq.html#faq_restrict\">FAQ</a></span>"
247
  msgstr ""
248
 
249
+ #: wp-smushit.php:204
 
250
  msgid ""
251
+ "ERROR: <span class='code'>%s</span> must be within the website home URL "
252
+ "(<span class='code'>%s</span>)"
253
  msgstr ""
254
 
255
+ #: wp-smushit.php:217
256
+ msgid "ERROR: posting to Smush.it"
 
 
 
257
  msgstr ""
258
 
259
+ #: wp-smushit.php:223 wp-smushit.php:252
260
+ msgid "Bad response from Smush.it"
261
  msgstr ""
262
 
263
+ #: wp-smushit.php:256
264
+ msgid "No savings"
265
  msgstr ""
266
 
267
+ #: wp-smushit.php:260
268
  msgid "Smush.it error: "
269
  msgstr ""
270
 
271
+ #: wp-smushit.php:260
272
  msgid "unknown error"
273
  msgstr ""
274
 
275
+ #: wp-smushit.php:261
 
276
  msgid ""
277
  " while processing <span class='code'>%s</span> (<span class='code'>%s</span>)"
278
  msgstr ""
279
 
280
+ #: wp-smushit.php:279
 
281
  msgid "Error downloading file (%s)"
282
  msgstr ""
283
 
284
+ #: wp-smushit.php:283
285
+ msgid "Unable to locate Smushed file (%s)"
 
286
  msgstr ""
287
 
288
+ #: wp-smushit.php:297
 
289
  msgid "Reduced by %01.1f%% (%s)"
290
  msgstr ""
291
 
292
+ #: wp-smushit.php:393
293
  msgid "WP Smush.it requires WordPress 2.8 or greater"
294
  msgstr ""
295
 
296
+ #: wp-smushit.php:435
297
  msgid "Re-smush"
298
  msgstr ""
299
 
300
+ #: wp-smushit.php:438
301
  msgid "Not processed"
302
  msgstr ""
303
 
304
+ #: wp-smushit.php:441
305
  msgid "Smush.it now!"
306
  msgstr ""
307
 
 
 
 
 
308
  #. Plugin URI of the plugin/theme
309
  msgid "http://wordpress.org/extend/plugins/wp-smushit/"
310
  msgstr ""
languages/wp_smushit-it_IT.po CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2013 WP Smush.it
2
  # This file is distributed under the same license as the WP Smush.it package.
3
  msgid ""
4
  msgstr ""
1
+ # Copyright (C) 2015 WP Smush.it
2
  # This file is distributed under the same license as the WP Smush.it package.
3
  msgid ""
4
  msgstr ""
lib/class-wp-smushit-admin.php CHANGED
@@ -39,6 +39,9 @@ if ( ! class_exists( 'WpSmushitAdmin' ) ) {
39
 
40
  //Handle Smush Ajax
41
  add_action( 'wp_ajax_wp_smushit_bulk', array( $this, 'process_smush_request' ) );
 
 
 
42
  }
43
 
44
  /**
@@ -112,6 +115,14 @@ if ( ! class_exists( 'WpSmushitAdmin' ) ) {
112
  <?php _e( 'WP Smush.it', WP_SMUSHIT_DOMAIN ) ?>
113
  </h2>
114
 
 
 
 
 
 
 
 
 
115
  <div class="wp-smpushit-container">
116
  <h3>
117
  <?php _e( 'Settings', WP_SMUSHIT_DOMAIN ) ?>
@@ -413,6 +424,30 @@ if ( ! class_exists( 'WpSmushitAdmin' ) ) {
413
  */
414
  require_once( WP_SMUSHIT_DIR . '/lib/error_log.php' );
415
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
416
  }
417
 
418
  //Add js variables for smushing
39
 
40
  //Handle Smush Ajax
41
  add_action( 'wp_ajax_wp_smushit_bulk', array( $this, 'process_smush_request' ) );
42
+
43
+
44
+ add_action( 'admin_notices', array( $this, 'depreciated_warning' ) );
45
  }
46
 
47
  /**
115
  <?php _e( 'WP Smush.it', WP_SMUSHIT_DOMAIN ) ?>
116
  </h2>
117
 
118
+ <h3><span class="dashicons dashicons-megaphone" style="color:red"></span> Urgent Smush.it Notice</h3>
119
+ <div class="error">
120
+ <p>Yahoo appears to be either discontinuing or not supporting their free Smush.it service - bah!</p>
121
+ <p>So, WPMU DEV is looking into how we can provide a free service to you that replaces this... but it's going to take some time.</p>
122
+ <p>So, in the interim, we're providing a (very temporary) <strong>90% discount on any new WPMU DEV membership</strong> to WP Smush.It users so you can use our dedicated <a href="https://premium.wpmudev.org/project/wp-smush-pro/">Smush Pro</a> servers - <a href="https://premium.wpmudev.org/?coupon=SMUSHEMERGENCY#pricing">click here to take that up</a> (and please don't share it around).</p>
123
+ <p>We will update the plugin as soon as we have it in place. Thanks, WPMU DEV</p>
124
+ </div>
125
+
126
  <div class="wp-smpushit-container">
127
  <h3>
128
  <?php _e( 'Settings', WP_SMUSHIT_DOMAIN ) ?>
424
  */
425
  require_once( WP_SMUSHIT_DIR . '/lib/error_log.php' );
426
  }
427
+
428
+ function depreciated_warning() {
429
+ if ( ! current_user_can('edit_others_posts') ) return;
430
+
431
+ if ( isset( $_GET['page']) && 'wp-smushit-bulk' == $_GET['page'] ) {
432
+ return;
433
+ }
434
+
435
+ if ( isset( $_GET['dismiss_smush_warning'] ) ) {
436
+ update_option('dismiss_smush_warning', 1);
437
+ }
438
+
439
+ if ( get_option('dismiss_smush_warning') ) return;
440
+ ?>
441
+ <div class="error">
442
+ <a href="<?php echo admin_url('index.php'); ?>?dismiss_smush_warning=1" style="float:right;margin-top: 10px;text-decoration: none;"><span class="dashicons dashicons-dismiss" style="color:gray;"></span>Dismiss</a>
443
+ <h3><span class="dashicons dashicons-megaphone" style="color:red"></span> Urgent Smush.it Notice</h3>
444
+ <p>Yahoo appears to be either discontinuing or not supporting their free Smush.it service - bah!</p>
445
+ <p>So, WPMU DEV is looking into how we can provide a free service to you that replaces this... but it's going to take some time.</p>
446
+ <p>So, in the interim, we're providing a (very temporary) <strong>90% discount on any new WPMU DEV membership</strong> to WP Smush.It users so you can use our dedicated <a href="https://premium.wpmudev.org/project/wp-smush-pro/">Smush Pro</a> servers - <a href="https://premium.wpmudev.org/?coupon=SMUSHEMERGENCY#pricing">click here to take that up</a> (and please don't share it around).</p>
447
+ <p>We will update the plugin as soon as we have it in place. Thanks, WPMU DEV</p>
448
+ </div>
449
+ <?php
450
+ }
451
  }
452
 
453
  //Add js variables for smushing
readme.txt CHANGED
@@ -1,19 +1,26 @@
1
  === WP Smush.it ===
2
  Plugin Name: WP Smush.it
3
- Version: 1.7
4
  Author: WPMU DEV
5
  Author URI: http://premium.wpmudev.org
6
  Contributors: WPMUDEV, alexdunae
7
  Tags: Compress,Images,Compression,Optimise,Optimize,Photo,Photos,Pictures,Smush,Smush.it,Upload,Yahoo,Yahoo Smush.it
8
  Requires at least: 3.5
9
  Tested up to: 4.1
10
- Stable tag: 1.7
11
  License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
12
 
13
  Improve performance and get faster load times by optimizing image files with <a href="http://smush.it/">Smush.it</a> for WordPress – “It's the best plugin of its kind.”
14
 
15
  == Description ==
16
 
 
 
 
 
 
 
 
17
  WP Smush.it strips hidden, bulky information from your images, reducing the file size without losing quality. The faster your site loads, the more Google, Bing, Yahoo and other search engines will like it.
18
 
19
  [youtube https://www.youtube.com/watch?v=_74QFoRb230]
@@ -73,6 +80,9 @@ This will give us a good foundation to start adding some new features!
73
 
74
  == Changelog ==
75
 
 
 
 
76
  = 1.7 =
77
  * Use Ajax for Bulk Smush to avoid timeouts and internal server error
78
  * Other Notice and bug fixes
1
  === WP Smush.it ===
2
  Plugin Name: WP Smush.it
3
+ Version: 1.7.1
4
  Author: WPMU DEV
5
  Author URI: http://premium.wpmudev.org
6
  Contributors: WPMUDEV, alexdunae
7
  Tags: Compress,Images,Compression,Optimise,Optimize,Photo,Photos,Pictures,Smush,Smush.it,Upload,Yahoo,Yahoo Smush.it
8
  Requires at least: 3.5
9
  Tested up to: 4.1
10
+ Stable tag: 1.7.1
11
  License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
12
 
13
  Improve performance and get faster load times by optimizing image files with <a href="http://smush.it/">Smush.it</a> for WordPress – “It's the best plugin of its kind.”
14
 
15
  == Description ==
16
 
17
+ <blockquote>
18
+ According to <a href="http://www.phpied.com/smush-it-is-dead-long-live-smushing/">unofficial but pretty reliable reports</a> Yahoo has stopped maintaining Smush.it :(
19
+
20
+ However, all is not lost! We are working like maniacs here at WPMU DEV to bring you a free, more reliable and better free smushing experience built off of our pro version of the plugin and wrapped up in the next update. We hope to have it available to you very, very soon... in the meantime please stay with us, it'll be worth it, promise. <br />
21
+ <em>- James, WPMU DEV, 6th April</em>
22
+ </blockquote>
23
+
24
  WP Smush.it strips hidden, bulky information from your images, reducing the file size without losing quality. The faster your site loads, the more Google, Bing, Yahoo and other search engines will like it.
25
 
26
  [youtube https://www.youtube.com/watch?v=_74QFoRb230]
80
 
81
  == Changelog ==
82
 
83
+ = 1.7.1 =
84
+ * Add depreciated warnings about Smush.it outage
85
+
86
  = 1.7 =
87
  * Use Ajax for Bulk Smush to avoid timeouts and internal server error
88
  * Other Notice and bug fixes
wp-smushit.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP Smush.it
4
  Plugin URI: http://wordpress.org/extend/plugins/wp-smushit/
5
  Description: Reduce image file sizes and improve performance using the <a href="http://smush.it/">Smush.it</a> API within WordPress.
6
  Author: WPMU DEV
7
- Version: 1.7
8
  Author URI: http://premium.wpmudev.org/
9
  Textdomain: wp_smushit
10
  */
@@ -39,7 +39,7 @@ if ( ! class_exists( 'WpSmushit' ) ) {
39
 
40
  class WpSmushit {
41
 
42
- var $version = "1.6.6";
43
 
44
  /**
45
  * Constructor
4
  Plugin URI: http://wordpress.org/extend/plugins/wp-smushit/
5
  Description: Reduce image file sizes and improve performance using the <a href="http://smush.it/">Smush.it</a> API within WordPress.
6
  Author: WPMU DEV
7
+ Version: 1.7.1
8
  Author URI: http://premium.wpmudev.org/
9
  Textdomain: wp_smushit
10
  */
39
 
40
  class WpSmushit {
41
 
42
+ var $version = "1.7.1";
43
 
44
  /**
45
  * Constructor