Version Description
- Added Settings link on main Installed Plugin view
- General code tidy up
- PHP 7.1 compatabile
- WP 4.8.2 tested
Download this release
Release Info
Developer | pigeonhut |
Plugin | Reduce HTTP Requests, Disable Emojis & Disable Embeds, Speedup WooCommerce |
Version | 1.5.13 |
Comparing to | |
See all releases |
Code changes from version 1.5.12 to 1.5.13
- lang/wpperformance-en_US.mo +0 -0
- lang/wpperformance.mo +0 -0
- lang/wpperformance.pot +200 -238
- lib/class-optimisationio-dashboard.php +26 -26
- lib/class-wpperformance.php +1 -1
- readme.txt +9 -3
- views/optimisationio-dashboard.php +8 -8
- wpperformance.php +2 -2
lang/wpperformance-en_US.mo
CHANGED
Binary file
|
lang/wpperformance.mo
CHANGED
Binary file
|
lang/wpperformance.pot
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Disable\n"
|
4 |
"Report-Msgid-Bugs-To: http://flexiblemegamenu.com\n"
|
5 |
-
"POT-Creation-Date: 2017-
|
6 |
-
"PO-Revision-Date: 2017-
|
7 |
"Last-Translator: _Language-Team:\n"
|
8 |
"Language-Team: \n"
|
9 |
"Language: en\n"
|
@@ -19,462 +19,424 @@ msgstr ""
|
|
19 |
"X-Poedit-SearchPath-0: .\n"
|
20 |
"X-Poedit-SearchPathExcluded-0: cache/local-ga.js\n"
|
21 |
|
22 |
-
#:
|
23 |
-
|
|
|
24 |
msgstr ""
|
25 |
|
26 |
-
#: lib/class-optimisationio-
|
27 |
-
msgid "
|
28 |
msgstr ""
|
29 |
|
30 |
-
#: lib/class-optimisationio-
|
31 |
-
msgid "
|
32 |
msgstr ""
|
33 |
|
34 |
-
#: lib/class-optimisationio-
|
35 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
msgstr ""
|
37 |
|
38 |
-
#: lib/class-optimisationio-
|
39 |
msgid "Invalid import arguments"
|
40 |
msgstr ""
|
41 |
|
42 |
-
#: lib/class-optimisationio-
|
43 |
msgid "Settings imported successfully"
|
44 |
msgstr ""
|
45 |
|
46 |
-
#: lib/class-optimisationio-
|
47 |
msgid "Imported invalid data"
|
48 |
msgstr ""
|
49 |
|
50 |
-
#: lib/class-optimisationio-
|
51 |
msgid "Invalid export arguments"
|
52 |
msgstr ""
|
53 |
|
54 |
-
#: lib/class-optimisationio-
|
55 |
msgid "Can't find saved data to export"
|
56 |
msgstr ""
|
57 |
|
58 |
-
#: lib/class-optimisationio-
|
59 |
msgid "Failed data verification"
|
60 |
msgstr ""
|
61 |
|
62 |
-
#: lib/class-optimisationio-
|
63 |
msgid "Improve WordPress performance by disabling unused items."
|
64 |
msgstr ""
|
65 |
|
66 |
-
#: lib/class-optimisationio-
|
67 |
msgid "Simple efficient WordPress caching."
|
68 |
msgstr ""
|
69 |
|
70 |
-
#: lib/class-optimisationio-
|
71 |
msgid "Image Compression and resizing - Setup under the Tools menu"
|
72 |
msgstr ""
|
73 |
|
74 |
-
#: lib/class-optimisationio-
|
75 |
-
|
76 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: lib/class-
|
80 |
-
msgid "
|
81 |
msgstr ""
|
82 |
|
83 |
-
#: lib/class-
|
84 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
85 |
msgstr ""
|
86 |
|
87 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
msgid "Requests"
|
89 |
msgstr ""
|
90 |
|
91 |
-
#:
|
92 |
msgid "WooCommerce"
|
93 |
msgstr ""
|
94 |
|
95 |
-
#:
|
96 |
msgid "Tags"
|
97 |
msgstr ""
|
98 |
|
99 |
-
#:
|
100 |
msgid "Admin"
|
101 |
msgstr ""
|
102 |
|
103 |
-
#:
|
104 |
msgid "Others"
|
105 |
msgstr ""
|
106 |
|
107 |
-
#:
|
108 |
msgid "Disable Emojis"
|
109 |
msgstr ""
|
110 |
|
111 |
-
#:
|
112 |
msgid "Remove Querystrings"
|
113 |
msgstr ""
|
114 |
|
115 |
-
#:
|
116 |
msgid "Disable Embeds"
|
117 |
msgstr ""
|
118 |
|
119 |
-
#:
|
120 |
msgid "Disable Google Maps"
|
121 |
msgstr ""
|
122 |
|
123 |
-
#:
|
124 |
-
|
|
|
125 |
msgstr ""
|
126 |
|
127 |
-
#:
|
128 |
-
msgid "
|
129 |
msgstr ""
|
130 |
|
131 |
-
#:
|
132 |
-
msgid "
|
133 |
msgstr ""
|
134 |
|
135 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
#, php-format
|
137 |
msgid "Minimize requests and load %1$sGoogle Fonts%2$s asynchronous"
|
138 |
msgstr ""
|
139 |
|
140 |
-
#:
|
141 |
#, php-format
|
142 |
msgid "Minimize requests and load %1$sFont Awesome%2$s asynchronous"
|
143 |
msgstr ""
|
144 |
|
145 |
-
#:
|
146 |
msgid "Disable WordPress password strength meter js on non related pages"
|
147 |
msgstr ""
|
148 |
|
149 |
-
#:
|
150 |
msgid "Disable Dashicons when user disables admin toolbar when viewing site"
|
151 |
msgstr ""
|
152 |
|
153 |
-
#:
|
154 |
msgid "Disable WooCommerce scripts and CSS on non WooCommerce pages"
|
155 |
msgstr ""
|
156 |
|
157 |
-
#:
|
158 |
msgid "Disable WooCommerce Reviews"
|
159 |
msgstr ""
|
160 |
|
161 |
-
#:
|
162 |
msgid "Defer WooCommerce Cart Fragments"
|
163 |
msgstr ""
|
164 |
|
165 |
-
#:
|
166 |
msgid "Disable WooCommerce password strength meter js on non related pages"
|
167 |
msgstr ""
|
168 |
|
169 |
-
#:
|
170 |
msgid "Remove RSD (Really Simple Discovery) tag"
|
171 |
msgstr ""
|
172 |
|
173 |
-
#:
|
174 |
msgid "Remove Shortlink Tag"
|
175 |
msgstr ""
|
176 |
|
177 |
-
#:
|
178 |
msgid "Remove Wordpress API from header"
|
179 |
msgstr ""
|
180 |
|
181 |
-
#:
|
182 |
msgid "Remove Windows Live Writer tag"
|
183 |
msgstr ""
|
184 |
|
185 |
-
#:
|
186 |
msgid "Remove Wordpress Generator Tag"
|
187 |
msgstr ""
|
188 |
|
189 |
-
#:
|
190 |
msgid "Posts revisions number"
|
191 |
msgstr ""
|
192 |
|
193 |
-
#:
|
194 |
-
#:
|
|
|
195 |
msgid "WordPress default"
|
196 |
msgstr ""
|
197 |
|
198 |
-
#:
|
199 |
msgid "Disable Autosave"
|
200 |
msgstr ""
|
201 |
|
202 |
-
#:
|
203 |
msgid "Disable admin notices"
|
204 |
msgstr ""
|
205 |
|
206 |
-
#:
|
207 |
msgid "Disable author pages"
|
208 |
msgstr ""
|
209 |
|
210 |
-
#:
|
211 |
msgid "Disable all comments"
|
212 |
msgstr ""
|
213 |
|
214 |
-
#:
|
215 |
msgid "Disable comments on certain post types"
|
216 |
msgstr ""
|
217 |
|
218 |
-
#:
|
219 |
#, php-format
|
220 |
msgid "Disable comments on post type \"%1$s%2$s%3$s\""
|
221 |
msgstr ""
|
222 |
|
223 |
-
#:
|
224 |
msgid "Close comments after 28 days"
|
225 |
msgstr ""
|
226 |
|
227 |
-
#:
|
228 |
msgid "Paginate comments at 20"
|
229 |
msgstr ""
|
230 |
|
231 |
-
#:
|
232 |
msgid "Remove links from comments"
|
233 |
msgstr ""
|
234 |
|
235 |
-
#:
|
236 |
msgid "Heartbeat frequency"
|
237 |
msgstr ""
|
238 |
|
239 |
-
#:
|
240 |
msgid "seconds"
|
241 |
msgstr ""
|
242 |
|
243 |
-
#:
|
244 |
msgid "Heartbeat locations"
|
245 |
msgstr ""
|
246 |
|
247 |
-
#:
|
248 |
msgid "Disable everywhere"
|
249 |
msgstr ""
|
250 |
|
251 |
-
#:
|
252 |
msgid "Disable on dashboard page"
|
253 |
msgstr ""
|
254 |
|
255 |
-
#:
|
256 |
msgid "Allow only on post edit pages"
|
257 |
msgstr ""
|
258 |
|
259 |
-
#:
|
260 |
-
msgid "Disable Gravatars"
|
261 |
-
msgstr ""
|
262 |
-
|
263 |
-
#: views/admin-settings.php:388
|
264 |
msgid "Disable pingbacks and trackbacks"
|
265 |
msgstr ""
|
266 |
|
267 |
-
#:
|
268 |
msgid "Disable feeds"
|
269 |
msgstr ""
|
270 |
|
271 |
-
#:
|
272 |
msgid "Redirect feed requests to corresponding HTML content"
|
273 |
msgstr ""
|
274 |
|
275 |
-
#:
|
276 |
-
msgid "Issue a Page Not Found (404) error for feed requests"
|
277 |
msgstr ""
|
278 |
|
279 |
-
#:
|
280 |
-
|
281 |
-
msgid ""
|
282 |
-
"Do not disable the %1$sglobal post feed%2$s and %3$sglobal comment feed%4$s"
|
283 |
msgstr ""
|
284 |
|
285 |
-
#:
|
286 |
-
msgid "Disable
|
287 |
msgstr ""
|
288 |
|
289 |
-
#:
|
290 |
msgid "Enable spam comments cleaner"
|
291 |
msgstr ""
|
292 |
|
293 |
-
#:
|
294 |
msgid "Delete spam comments"
|
295 |
msgstr ""
|
296 |
|
297 |
-
#:
|
298 |
msgid "Once Hourly"
|
299 |
msgstr ""
|
300 |
|
301 |
-
#:
|
302 |
-
msgid "
|
303 |
msgstr ""
|
304 |
|
305 |
-
#:
|
306 |
-
msgid "
|
307 |
msgstr ""
|
308 |
|
309 |
-
#:
|
310 |
msgid "Once Weekly"
|
311 |
msgstr ""
|
312 |
|
313 |
-
#:
|
314 |
msgid "Twice Monthly"
|
315 |
msgstr ""
|
316 |
|
317 |
-
#:
|
318 |
msgid "Once Monthly"
|
319 |
msgstr ""
|
320 |
|
321 |
-
#:
|
322 |
#, php-format
|
323 |
msgid "Next spam delete: %s"
|
324 |
msgstr ""
|
325 |
|
326 |
-
#:
|
327 |
-
msgid "Delete spam comments
|
328 |
msgstr ""
|
329 |
|
330 |
-
#: views/
|
331 |
-
msgid "Update"
|
332 |
-
msgstr ""
|
333 |
-
|
334 |
-
#: views/admin-settings.php:487
|
335 |
-
msgid "Offload Google Analytics to local"
|
336 |
-
msgstr ""
|
337 |
-
|
338 |
-
#: views/admin-settings.php:490
|
339 |
-
msgid "GA Code"
|
340 |
-
msgstr ""
|
341 |
-
|
342 |
-
#: views/admin-settings.php:494
|
343 |
-
msgid "Save GA in (please ensure you remove any other GA tracking)"
|
344 |
-
msgstr ""
|
345 |
-
|
346 |
-
#: views/admin-settings.php:505
|
347 |
-
msgid "Use adjusted bounce rate?"
|
348 |
-
msgstr ""
|
349 |
-
|
350 |
-
#: views/admin-settings.php:509
|
351 |
-
msgid "Change enqueue order? (Default = 0)"
|
352 |
-
msgstr ""
|
353 |
-
|
354 |
-
#: views/admin-settings.php:519
|
355 |
-
msgid "Track logged in Administrators?"
|
356 |
-
msgstr ""
|
357 |
-
|
358 |
-
#: views/admin-settings.php:522
|
359 |
-
msgid "Remove script from wp-cron?"
|
360 |
-
msgstr ""
|
361 |
-
|
362 |
-
#: views/optimisationio-import-export.php:3
|
363 |
-
#, php-format
|
364 |
-
msgid "%1$s Optimisation.io - Import/Export add-ons settings %2$s"
|
365 |
-
msgstr ""
|
366 |
-
|
367 |
-
#: views/optimisationio-import-export.php:16
|
368 |
-
msgid "Import"
|
369 |
-
msgstr ""
|
370 |
-
|
371 |
-
#: views/optimisationio-import-export.php:17
|
372 |
-
msgid "Export"
|
373 |
-
msgstr ""
|
374 |
-
|
375 |
-
#: views/optimisationio-import-export.php:24
|
376 |
-
msgid ""
|
377 |
-
"Copy into textarea the encoded string of add-ons settings you have exported"
|
378 |
-
msgstr ""
|
379 |
-
|
380 |
-
#: views/optimisationio-import-export.php:30
|
381 |
-
msgid ""
|
382 |
-
"Select the add-οns whose settings you want to include in the exported data"
|
383 |
-
msgstr ""
|
384 |
-
|
385 |
-
#: views/optimisationio-import-export.php:42
|
386 |
-
msgid "Import settings"
|
387 |
-
msgstr ""
|
388 |
-
|
389 |
-
#: views/optimisationio-import-export.php:43
|
390 |
-
msgid "Export current settings"
|
391 |
-
msgstr ""
|
392 |
-
|
393 |
-
#: views/optimisationio-import-export.php:45
|
394 |
-
msgid "Clear"
|
395 |
-
msgstr ""
|
396 |
-
|
397 |
-
#: views/optimisationio-import-export.php:46
|
398 |
-
msgid "Copy to clipboard"
|
399 |
-
msgstr ""
|
400 |
-
|
401 |
-
#: views/optimisationio-import-export.php:216
|
402 |
-
msgid "Exported settings copied to clipboard"
|
403 |
-
msgstr ""
|
404 |
-
|
405 |
-
#: views/optimisationio-statistics-addons.php:4
|
406 |
-
msgid "Install"
|
407 |
-
msgstr ""
|
408 |
-
|
409 |
-
#: views/optimisationio-statistics-addons.php:5
|
410 |
-
msgid "Activate"
|
411 |
-
msgstr ""
|
412 |
-
|
413 |
-
#: views/optimisationio-statistics-addons.php:6
|
414 |
-
msgid "Deactivate"
|
415 |
-
msgstr ""
|
416 |
-
|
417 |
-
#: views/optimisationio-statistics-addons.php:7
|
418 |
-
#, php-format
|
419 |
-
msgid "%1$s Optimisation.io %2$s"
|
420 |
-
msgstr ""
|
421 |
-
|
422 |
-
#: views/optimisationio-statistics-addons.php:8
|
423 |
-
msgid "Changes you made may not be saved."
|
424 |
-
msgstr ""
|
425 |
-
|
426 |
-
#: views/optimisationio-statistics-addons.php:42
|
427 |
msgid "Request manual optimisation"
|
428 |
msgstr ""
|
429 |
|
430 |
-
#: views/optimisationio-
|
431 |
msgid "Support"
|
432 |
msgstr ""
|
433 |
|
434 |
-
#: views/optimisationio-
|
435 |
-
msgid "
|
436 |
-
msgstr ""
|
437 |
-
|
438 |
-
#: views/optimisationio-statistics-addons.php:62
|
439 |
-
msgid "Pages average load time"
|
440 |
msgstr ""
|
441 |
|
442 |
-
#: views/optimisationio-
|
443 |
-
msgid "
|
444 |
msgstr ""
|
445 |
|
446 |
-
#: views/optimisationio-
|
447 |
-
msgid "Database
|
448 |
msgstr ""
|
449 |
|
450 |
-
#: views/optimisationio-
|
451 |
-
msgid "
|
452 |
-
msgstr ""
|
453 |
-
|
454 |
-
#: views/optimisationio-statistics-addons.php:78
|
455 |
-
msgid "Database size saved"
|
456 |
-
msgstr ""
|
457 |
-
|
458 |
-
#: views/optimisationio-statistics-addons.php:82
|
459 |
-
msgid "Gravatars cache"
|
460 |
-
msgstr ""
|
461 |
-
|
462 |
-
#: views/optimisationio-statistics-addons.php:89
|
463 |
-
msgid "Compressed images"
|
464 |
-
msgstr ""
|
465 |
-
|
466 |
-
#: views/optimisationio-statistics-addons.php:93
|
467 |
-
msgid "Size saved"
|
468 |
-
msgstr ""
|
469 |
-
|
470 |
-
#: views/optimisationio-statistics-addons.php:101
|
471 |
-
msgid "Disable"
|
472 |
-
msgstr ""
|
473 |
-
|
474 |
-
#: views/optimisationio-statistics-addons.php:102
|
475 |
-
msgid "Images"
|
476 |
-
msgstr ""
|
477 |
-
|
478 |
-
#: views/optimisationio-statistics-addons.php:103
|
479 |
-
msgid "Cache"
|
480 |
msgstr ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Disable\n"
|
4 |
"Report-Msgid-Bugs-To: http://flexiblemegamenu.com\n"
|
5 |
+
"POT-Creation-Date: 2017-10-11 04:58+0200\n"
|
6 |
+
"PO-Revision-Date: 2017-10-11 04:58+0200\n"
|
7 |
"Last-Translator: _Language-Team:\n"
|
8 |
"Language-Team: \n"
|
9 |
"Language: en\n"
|
19 |
"X-Poedit-SearchPath-0: .\n"
|
20 |
"X-Poedit-SearchPathExcluded-0: cache/local-ga.js\n"
|
21 |
|
22 |
+
#: lib/class-optimisationio-dashboard.php:15
|
23 |
+
#: lib/class-optimisationio-dashboard.php:579
|
24 |
+
msgid "n/a"
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: lib/class-optimisationio-dashboard.php:16
|
28 |
+
msgid "Install"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: lib/class-optimisationio-dashboard.php:17
|
32 |
+
msgid "Activate"
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: lib/class-optimisationio-dashboard.php:18
|
36 |
+
msgid "Deactivate"
|
37 |
+
msgstr ""
|
38 |
+
|
39 |
+
#: lib/class-optimisationio-dashboard.php:19
|
40 |
+
msgid "Changes you made may not be saved."
|
41 |
+
msgstr ""
|
42 |
+
|
43 |
+
#: lib/class-optimisationio-dashboard.php:39
|
44 |
+
msgid "Optimisation.io"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: lib/class-optimisationio-dashboard.php:282
|
48 |
msgid "Invalid import arguments"
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: lib/class-optimisationio-dashboard.php:375
|
52 |
msgid "Settings imported successfully"
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: lib/class-optimisationio-dashboard.php:379
|
56 |
msgid "Imported invalid data"
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: lib/class-optimisationio-dashboard.php:397
|
60 |
msgid "Invalid export arguments"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: lib/class-optimisationio-dashboard.php:446
|
64 |
msgid "Can't find saved data to export"
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: lib/class-optimisationio-dashboard.php:452
|
68 |
msgid "Failed data verification"
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: lib/class-optimisationio-dashboard.php:480
|
72 |
msgid "Improve WordPress performance by disabling unused items."
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: lib/class-optimisationio-dashboard.php:481
|
76 |
msgid "Simple efficient WordPress caching."
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: lib/class-optimisationio-dashboard.php:482
|
80 |
msgid "Image Compression and resizing - Setup under the Tools menu"
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: lib/class-optimisationio-dashboard.php:610
|
84 |
+
msgid "Saved"
|
85 |
+
msgstr ""
|
86 |
+
|
87 |
+
#: lib/class-optimisationio-dashboard.php:629
|
88 |
+
msgid "Original DB"
|
89 |
+
msgstr ""
|
90 |
+
|
91 |
+
#: lib/class-optimisationio-dashboard.php:630
|
92 |
+
msgid "New DB"
|
93 |
+
msgstr ""
|
94 |
+
|
95 |
+
#: lib/class-optimisationio-dashboard.php:631
|
96 |
+
msgid "Savings"
|
97 |
+
msgstr ""
|
98 |
+
|
99 |
+
#: lib/class-optimisationio-dashboard.php:634
|
100 |
+
msgid "Pages average load time"
|
101 |
+
msgstr ""
|
102 |
+
|
103 |
+
#: lib/class-optimisationio-dashboard.php:637
|
104 |
+
msgid "Cache"
|
105 |
+
msgstr ""
|
106 |
+
|
107 |
+
#: lib/class-optimisationio-dashboard.php:638
|
108 |
+
msgid "Gravatars Cache"
|
109 |
+
msgstr ""
|
110 |
+
|
111 |
+
#: lib/class-optimisationio-dashboard.php:731
|
112 |
+
msgid "Offload Google Analytics"
|
113 |
+
msgstr ""
|
114 |
+
|
115 |
+
#: lib/class-optimisationio-dashboard.php:733
|
116 |
+
msgid "Import"
|
117 |
+
msgstr ""
|
118 |
+
|
119 |
+
#: lib/class-optimisationio-dashboard.php:734
|
120 |
+
msgid "Export"
|
121 |
+
msgstr ""
|
122 |
+
|
123 |
+
#: lib/class-optimisationio-dashboard.php:746
|
124 |
+
msgid ""
|
125 |
+
"Copy into textarea the encoded string of add-ons settings you have exported"
|
126 |
msgstr ""
|
127 |
|
128 |
+
#: lib/class-optimisationio-dashboard.php:751
|
129 |
+
msgid "Import settings"
|
130 |
msgstr ""
|
131 |
|
132 |
+
#: lib/class-optimisationio-dashboard.php:753
|
133 |
+
msgid "Clear"
|
134 |
+
msgstr ""
|
135 |
+
|
136 |
+
#: lib/class-optimisationio-dashboard.php:757
|
137 |
+
msgid ""
|
138 |
+
"Select the add-οns whose settings you want to include in the exported data"
|
139 |
msgstr ""
|
140 |
|
141 |
+
#: lib/class-optimisationio-dashboard.php:771
|
142 |
+
msgid "Export current settings"
|
143 |
+
msgstr ""
|
144 |
+
|
145 |
+
#: lib/class-optimisationio-dashboard.php:773
|
146 |
+
msgid "Copy to clipboard"
|
147 |
+
msgstr ""
|
148 |
+
|
149 |
+
#: lib/class-wpperformance-admin.php:465
|
150 |
+
msgid "GA Code"
|
151 |
+
msgstr ""
|
152 |
+
|
153 |
+
#: lib/class-wpperformance-admin.php:469
|
154 |
+
msgid "Save GA in (please ensure you remove any other GA tracking)"
|
155 |
+
msgstr ""
|
156 |
+
|
157 |
+
#: lib/class-wpperformance-admin.php:480
|
158 |
+
msgid "Use adjusted bounce rate?"
|
159 |
+
msgstr ""
|
160 |
+
|
161 |
+
#: lib/class-wpperformance-admin.php:484
|
162 |
+
msgid "Change enqueue order? (Default = 0)"
|
163 |
+
msgstr ""
|
164 |
+
|
165 |
+
#: lib/class-wpperformance-admin.php:494
|
166 |
+
msgid "Track logged in Administrators?"
|
167 |
+
msgstr ""
|
168 |
+
|
169 |
+
#: lib/class-wpperformance-admin.php:497
|
170 |
+
msgid "Remove script from wp-cron?"
|
171 |
+
msgstr ""
|
172 |
+
|
173 |
+
#: lib/class-wpperformance-admin.php:569
|
174 |
msgid "Requests"
|
175 |
msgstr ""
|
176 |
|
177 |
+
#: lib/class-wpperformance-admin.php:571
|
178 |
msgid "WooCommerce"
|
179 |
msgstr ""
|
180 |
|
181 |
+
#: lib/class-wpperformance-admin.php:573
|
182 |
msgid "Tags"
|
183 |
msgstr ""
|
184 |
|
185 |
+
#: lib/class-wpperformance-admin.php:574
|
186 |
msgid "Admin"
|
187 |
msgstr ""
|
188 |
|
189 |
+
#: lib/class-wpperformance-admin.php:575
|
190 |
msgid "Others"
|
191 |
msgstr ""
|
192 |
|
193 |
+
#: lib/class-wpperformance-admin.php:583
|
194 |
msgid "Disable Emojis"
|
195 |
msgstr ""
|
196 |
|
197 |
+
#: lib/class-wpperformance-admin.php:587
|
198 |
msgid "Remove Querystrings"
|
199 |
msgstr ""
|
200 |
|
201 |
+
#: lib/class-wpperformance-admin.php:591
|
202 |
msgid "Disable Embeds"
|
203 |
msgstr ""
|
204 |
|
205 |
+
#: lib/class-wpperformance-admin.php:595
|
206 |
msgid "Disable Google Maps"
|
207 |
msgstr ""
|
208 |
|
209 |
+
#: lib/class-wpperformance-admin.php:599
|
210 |
+
#, php-format
|
211 |
+
msgid "Exclude pages from %1$s Disable Google Maps %2$s filter"
|
212 |
msgstr ""
|
213 |
|
214 |
+
#: lib/class-wpperformance-admin.php:606
|
215 |
+
msgid "Disable Referral Spam"
|
216 |
msgstr ""
|
217 |
|
218 |
+
#: lib/class-wpperformance-admin.php:610
|
219 |
+
msgid "DNS prefetch"
|
220 |
msgstr ""
|
221 |
|
222 |
+
#: lib/class-wpperformance-admin.php:615
|
223 |
+
msgid "Prefetch host list"
|
224 |
+
msgstr ""
|
225 |
+
|
226 |
+
#: lib/class-wpperformance-admin.php:618
|
227 |
+
msgid "One domain by line"
|
228 |
+
msgstr ""
|
229 |
+
|
230 |
+
#: lib/class-wpperformance-admin.php:623
|
231 |
#, php-format
|
232 |
msgid "Minimize requests and load %1$sGoogle Fonts%2$s asynchronous"
|
233 |
msgstr ""
|
234 |
|
235 |
+
#: lib/class-wpperformance-admin.php:627
|
236 |
#, php-format
|
237 |
msgid "Minimize requests and load %1$sFont Awesome%2$s asynchronous"
|
238 |
msgstr ""
|
239 |
|
240 |
+
#: lib/class-wpperformance-admin.php:631
|
241 |
msgid "Disable WordPress password strength meter js on non related pages"
|
242 |
msgstr ""
|
243 |
|
244 |
+
#: lib/class-wpperformance-admin.php:635
|
245 |
msgid "Disable Dashicons when user disables admin toolbar when viewing site"
|
246 |
msgstr ""
|
247 |
|
248 |
+
#: lib/class-wpperformance-admin.php:643
|
249 |
msgid "Disable WooCommerce scripts and CSS on non WooCommerce pages"
|
250 |
msgstr ""
|
251 |
|
252 |
+
#: lib/class-wpperformance-admin.php:648
|
253 |
msgid "Disable WooCommerce Reviews"
|
254 |
msgstr ""
|
255 |
|
256 |
+
#: lib/class-wpperformance-admin.php:653
|
257 |
msgid "Defer WooCommerce Cart Fragments"
|
258 |
msgstr ""
|
259 |
|
260 |
+
#: lib/class-wpperformance-admin.php:658
|
261 |
msgid "Disable WooCommerce password strength meter js on non related pages"
|
262 |
msgstr ""
|
263 |
|
264 |
+
#: lib/class-wpperformance-admin.php:666
|
265 |
msgid "Remove RSD (Really Simple Discovery) tag"
|
266 |
msgstr ""
|
267 |
|
268 |
+
#: lib/class-wpperformance-admin.php:670
|
269 |
msgid "Remove Shortlink Tag"
|
270 |
msgstr ""
|
271 |
|
272 |
+
#: lib/class-wpperformance-admin.php:674
|
273 |
msgid "Remove Wordpress API from header"
|
274 |
msgstr ""
|
275 |
|
276 |
+
#: lib/class-wpperformance-admin.php:678
|
277 |
msgid "Remove Windows Live Writer tag"
|
278 |
msgstr ""
|
279 |
|
280 |
+
#: lib/class-wpperformance-admin.php:682
|
281 |
msgid "Remove Wordpress Generator Tag"
|
282 |
msgstr ""
|
283 |
|
284 |
+
#: lib/class-wpperformance-admin.php:689
|
285 |
msgid "Posts revisions number"
|
286 |
msgstr ""
|
287 |
|
288 |
+
#: lib/class-wpperformance-admin.php:694
|
289 |
+
#: lib/class-wpperformance-admin.php:782
|
290 |
+
#: lib/class-wpperformance-admin.php:818
|
291 |
msgid "WordPress default"
|
292 |
msgstr ""
|
293 |
|
294 |
+
#: lib/class-wpperformance-admin.php:735
|
295 |
msgid "Disable Autosave"
|
296 |
msgstr ""
|
297 |
|
298 |
+
#: lib/class-wpperformance-admin.php:739
|
299 |
msgid "Disable admin notices"
|
300 |
msgstr ""
|
301 |
|
302 |
+
#: lib/class-wpperformance-admin.php:743
|
303 |
msgid "Disable author pages"
|
304 |
msgstr ""
|
305 |
|
306 |
+
#: lib/class-wpperformance-admin.php:747
|
307 |
msgid "Disable all comments"
|
308 |
msgstr ""
|
309 |
|
310 |
+
#: lib/class-wpperformance-admin.php:751
|
311 |
msgid "Disable comments on certain post types"
|
312 |
msgstr ""
|
313 |
|
314 |
+
#: lib/class-wpperformance-admin.php:758
|
315 |
#, php-format
|
316 |
msgid "Disable comments on post type \"%1$s%2$s%3$s\""
|
317 |
msgstr ""
|
318 |
|
319 |
+
#: lib/class-wpperformance-admin.php:765
|
320 |
msgid "Close comments after 28 days"
|
321 |
msgstr ""
|
322 |
|
323 |
+
#: lib/class-wpperformance-admin.php:769
|
324 |
msgid "Paginate comments at 20"
|
325 |
msgstr ""
|
326 |
|
327 |
+
#: lib/class-wpperformance-admin.php:773
|
328 |
msgid "Remove links from comments"
|
329 |
msgstr ""
|
330 |
|
331 |
+
#: lib/class-wpperformance-admin.php:777
|
332 |
msgid "Heartbeat frequency"
|
333 |
msgstr ""
|
334 |
|
335 |
+
#: lib/class-wpperformance-admin.php:780
|
336 |
msgid "seconds"
|
337 |
msgstr ""
|
338 |
|
339 |
+
#: lib/class-wpperformance-admin.php:814
|
340 |
msgid "Heartbeat locations"
|
341 |
msgstr ""
|
342 |
|
343 |
+
#: lib/class-wpperformance-admin.php:819
|
344 |
msgid "Disable everywhere"
|
345 |
msgstr ""
|
346 |
|
347 |
+
#: lib/class-wpperformance-admin.php:820
|
348 |
msgid "Disable on dashboard page"
|
349 |
msgstr ""
|
350 |
|
351 |
+
#: lib/class-wpperformance-admin.php:821
|
352 |
msgid "Allow only on post edit pages"
|
353 |
msgstr ""
|
354 |
|
355 |
+
#: lib/class-wpperformance-admin.php:842
|
|
|
|
|
|
|
|
|
356 |
msgid "Disable pingbacks and trackbacks"
|
357 |
msgstr ""
|
358 |
|
359 |
+
#: lib/class-wpperformance-admin.php:846
|
360 |
msgid "Disable feeds"
|
361 |
msgstr ""
|
362 |
|
363 |
+
#: lib/class-wpperformance-admin.php:852
|
364 |
msgid "Redirect feed requests to corresponding HTML content"
|
365 |
msgstr ""
|
366 |
|
367 |
+
#: lib/class-wpperformance-admin.php:857
|
368 |
+
msgid "Issue a \"Page Not Found (404)\" error for feed requests"
|
369 |
msgstr ""
|
370 |
|
371 |
+
#: lib/class-wpperformance-admin.php:863
|
372 |
+
msgid "Disable XML-RPC"
|
|
|
|
|
373 |
msgstr ""
|
374 |
|
375 |
+
#: lib/class-wpperformance-admin.php:867
|
376 |
+
msgid "Disable Gravatars"
|
377 |
msgstr ""
|
378 |
|
379 |
+
#: lib/class-wpperformance-admin.php:871
|
380 |
msgid "Enable spam comments cleaner"
|
381 |
msgstr ""
|
382 |
|
383 |
+
#: lib/class-wpperformance-admin.php:875
|
384 |
msgid "Delete spam comments"
|
385 |
msgstr ""
|
386 |
|
387 |
+
#: lib/class-wpperformance-admin.php:879
|
388 |
msgid "Once Hourly"
|
389 |
msgstr ""
|
390 |
|
391 |
+
#: lib/class-wpperformance-admin.php:880
|
392 |
+
msgid "Twice Daily"
|
393 |
msgstr ""
|
394 |
|
395 |
+
#: lib/class-wpperformance-admin.php:881
|
396 |
+
msgid "Once Daily"
|
397 |
msgstr ""
|
398 |
|
399 |
+
#: lib/class-wpperformance-admin.php:882 wpperformance.php:144
|
400 |
msgid "Once Weekly"
|
401 |
msgstr ""
|
402 |
|
403 |
+
#: lib/class-wpperformance-admin.php:883 wpperformance.php:149
|
404 |
msgid "Twice Monthly"
|
405 |
msgstr ""
|
406 |
|
407 |
+
#: lib/class-wpperformance-admin.php:884 wpperformance.php:154
|
408 |
msgid "Once Monthly"
|
409 |
msgstr ""
|
410 |
|
411 |
+
#: lib/class-wpperformance-admin.php:904
|
412 |
#, php-format
|
413 |
msgid "Next spam delete: %s"
|
414 |
msgstr ""
|
415 |
|
416 |
+
#: lib/class-wpperformance-admin.php:908
|
417 |
+
msgid "Delete spam comments now"
|
418 |
msgstr ""
|
419 |
|
420 |
+
#: views/optimisationio-dashboard.php:17
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
421 |
msgid "Request manual optimisation"
|
422 |
msgstr ""
|
423 |
|
424 |
+
#: views/optimisationio-dashboard.php:20
|
425 |
msgid "Support"
|
426 |
msgstr ""
|
427 |
|
428 |
+
#: views/optimisationio-dashboard.php:27
|
429 |
+
msgid "Remove Excess Bloat"
|
|
|
|
|
|
|
|
|
430 |
msgstr ""
|
431 |
|
432 |
+
#: views/optimisationio-dashboard.php:28
|
433 |
+
msgid "Compress Images"
|
434 |
msgstr ""
|
435 |
|
436 |
+
#: views/optimisationio-dashboard.php:29
|
437 |
+
msgid "Cache & Database"
|
438 |
msgstr ""
|
439 |
|
440 |
+
#: views/optimisationio-dashboard.php:75
|
441 |
+
msgid "Coming Soon"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
442 |
msgstr ""
|
lib/class-optimisationio-dashboard.php
CHANGED
@@ -10,7 +10,7 @@ class Optimisationio_Dashboard {
|
|
10 |
public static $addons = null;
|
11 |
|
12 |
function __construct() {
|
13 |
-
|
14 |
self::$str_i18n = array(
|
15 |
"n/a" => __( "n/a", "optimisationio" ),
|
16 |
"install" => __( "Install", "optimisationio" ),
|
@@ -46,7 +46,7 @@ class Optimisationio_Dashboard {
|
|
46 |
require_once( plugin_dir_path( dirname( __FILE__ ) ) . 'views/optimisationio-dashboard.php' );
|
47 |
}
|
48 |
|
49 |
-
public function addons_pages_styles($hook){
|
50 |
if ( 'toplevel_page_optimisationio-dashboard' === $hook ) {
|
51 |
wp_enqueue_style( 'optimisationio-dashboard', plugin_dir_url( dirname( __FILE__ ) ) . 'css/optimisationio-dashboard.css' );
|
52 |
}
|
@@ -137,7 +137,7 @@ class Optimisationio_Dashboard {
|
|
137 |
if ( ! is_wp_error( $result ) ) {
|
138 |
$ret['error'] = 0;
|
139 |
$ret['msg'] = "Successful activation";
|
140 |
-
|
141 |
switch( $post_req['slug'] ){
|
142 |
case 'wp-disable':
|
143 |
case 'wp-image-compression':
|
@@ -150,7 +150,7 @@ class Optimisationio_Dashboard {
|
|
150 |
}
|
151 |
|
152 |
switch( $post_req['slug'] ){
|
153 |
-
case 'wp-disable':
|
154 |
ob_start();
|
155 |
self::display_addons__settings('wp-disable');
|
156 |
$ret['plugin_settings_content'] = ob_get_contents();
|
@@ -271,7 +271,7 @@ class Optimisationio_Dashboard {
|
|
271 |
}
|
272 |
|
273 |
public function ajax_import_addons_settings(){
|
274 |
-
|
275 |
$post_req = $_POST; // Input var okay.
|
276 |
|
277 |
$ret = array( 'error' => 1 );
|
@@ -283,7 +283,7 @@ class Optimisationio_Dashboard {
|
|
283 |
$ret['type'] = 'invalid_arguments';
|
284 |
}
|
285 |
else{
|
286 |
-
|
287 |
$decoded_data = json_decode( base64_decode( $post_req['data'] ), true );
|
288 |
|
289 |
if( $decoded_data ){
|
@@ -301,11 +301,11 @@ class Optimisationio_Dashboard {
|
|
301 |
if( isset( $decoded_data[$slug]['cdn_sett'] ) ){
|
302 |
update_option( 'Optimisationio_rev3a_cdnsettings', $decoded_data[$slug]['cdn_sett'] );
|
303 |
}
|
304 |
-
|
305 |
if( isset( $decoded_data[$slug]['general_sett'] ) ){
|
306 |
update_option( 'Optimisationio_rev3a_settings', $decoded_data[$slug]['general_sett'] );
|
307 |
}
|
308 |
-
|
309 |
if( isset( $decoded_data[$slug]['db_opt_sett'] ) ){
|
310 |
update_option( 'Optimisationio_rev3a_dboptimisesetting', $decoded_data[$slug]['db_opt_sett'] );
|
311 |
}
|
@@ -315,7 +315,7 @@ class Optimisationio_Dashboard {
|
|
315 |
}
|
316 |
break;
|
317 |
case self::$addons_slug[2]: // 'wp-image-compression'.
|
318 |
-
|
319 |
if( isset( $decoded_data[$slug]['general_sett'] ) ){
|
320 |
update_option( '_wpimage_options', $decoded_data[$slug]['general_sett'] );
|
321 |
}
|
@@ -323,7 +323,7 @@ class Optimisationio_Dashboard {
|
|
323 |
if( isset( $decoded_data[$slug]['cloudinary_sett'] ) ){
|
324 |
update_option( '_wpimage_options_cloudinary', $decoded_data[$slug]['cloudinary_sett'] );
|
325 |
}
|
326 |
-
|
327 |
if( isset( $decoded_data[$slug]['lazy_load_sett'] ) ){
|
328 |
update_option( '_wpimage_lazyload_options', $decoded_data[$slug]['lazy_load_sett'] );
|
329 |
}
|
@@ -386,9 +386,9 @@ class Optimisationio_Dashboard {
|
|
386 |
}
|
387 |
|
388 |
public function ajax_export_addons_settings(){
|
389 |
-
|
390 |
$post_req = $_POST; // Input var okay.
|
391 |
-
|
392 |
$ret = array( 'error' => null );
|
393 |
|
394 |
if( $this->wp_verify_nonce( $post_req['nonce'], 'optimisationio-import-export-nonce' ) ){
|
@@ -413,7 +413,7 @@ class Optimisationio_Dashboard {
|
|
413 |
'general_sett' => get_option( 'Optimisationio_rev3a_settings' ),
|
414 |
'db_opt_sett' => get_option( 'Optimisationio_rev3a_dboptimisesetting' ),
|
415 |
'gravatar_cache_sett' => get_option( 'Optimisationio_rev3a_gravatar_cache_settings' ),
|
416 |
-
);
|
417 |
break;
|
418 |
case self::$addons_slug[2]: // 'wp-image-compression'.
|
419 |
$export[$val] = array(
|
@@ -629,7 +629,7 @@ class Optimisationio_Dashboard {
|
|
629 |
<li><?php esc_html_e( 'Original DB', 'optimisationio' ); ?><span><?php Optimisationio_Dashboard::echo_stats_size( $active_addon, $active_addon ? $cache_info->size : 0 ); ?></span></li>
|
630 |
<li><?php esc_html_e( 'New DB', 'optimisationio' ); ?><span><?php Optimisationio_Dashboard::echo_stats_size( $active_addon, $active_addon ? $cache_info->optimised_size : 0 ); ?></span></li>
|
631 |
<li><?php esc_html_e( 'Savings', 'optimisationio' ); ?><span><?php Optimisationio_Dashboard::echo_stats_size( $active_addon, $active_addon ? $cache_info->saving : 0 ); ?></span></li>
|
632 |
-
</ul>
|
633 |
<ul class="cache-and-database-list">
|
634 |
<li><?php esc_html_e('Pages average load time', 'optimisationio'); ?><span><?php echo $active_addon ? Optimisationio::average_pages_load_time() : '<i class="n_a">' . self::$str_i18n['n/a'] . '</i>'; ?></span></li>
|
635 |
</ul>
|
@@ -660,10 +660,10 @@ class Optimisationio_Dashboard {
|
|
660 |
public static function display_stats__measurements(){ ?>
|
661 |
<div class="statistics-measurements">
|
662 |
<div class="stats-section">
|
663 |
-
<div class="stats-part">
|
664 |
<?php self::display_stats__compress_images(); ?>
|
665 |
</div>
|
666 |
-
<div class="stats-part">
|
667 |
<?php self::display_stats__cache_and_database_and_wp_disable(); ?>
|
668 |
</div>
|
669 |
</div>
|
@@ -710,7 +710,7 @@ class Optimisationio_Dashboard {
|
|
710 |
return $ret;
|
711 |
}
|
712 |
|
713 |
-
public static function checkbox_component($name='', $checked=false){
|
714 |
$id = '' !== $name ? 'id-' . $name : 'tmp-id-' . substr(uniqid(), -4);
|
715 |
?>
|
716 |
<div class="optio-check-component">
|
@@ -719,7 +719,7 @@ class Optimisationio_Dashboard {
|
|
719 |
</div> <?php
|
720 |
}
|
721 |
|
722 |
-
public static function sidebar_tabs_section_content(){
|
723 |
if( null === self::$addons ){
|
724 |
self::init_addons();
|
725 |
}
|
@@ -739,7 +739,7 @@ class Optimisationio_Dashboard {
|
|
739 |
<ul>
|
740 |
<?php if( self::addon_activated('wp-disable') ){ ?>
|
741 |
<li data-tab-id="ga">
|
742 |
-
<?php WpPerformance_Admin::offload_google_analytics_settings(); ?>
|
743 |
</li>
|
744 |
<?php } ?>
|
745 |
<li data-tab-id="imp">
|
@@ -747,33 +747,33 @@ class Optimisationio_Dashboard {
|
|
747 |
<div class="textarea-wrap">
|
748 |
<textarea id="import_settings_tarea"></textarea>
|
749 |
</div>
|
750 |
-
|
751 |
<button class="import-btn button button-primary button-large" disabled><?php esc_html_e( "Import settings", "optimisationio" ); ?></button>
|
752 |
-
|
753 |
<button class="clear-import-btn button button-large hidden"><?php esc_html_e( "Clear", "optimisationio" ); ?></button>
|
754 |
</li>
|
755 |
<li data-tab-id="exp">
|
756 |
-
|
757 |
<p><?php esc_html_e("Select the add-οns whose settings you want to include in the exported data", "optimisationio"); ?></p>
|
758 |
|
759 |
<div class="export-addons-list-options">
|
760 |
-
<?php foreach ($addons as $key => $val) {
|
761 |
if( self::addon_activated($key) ){ ?>
|
762 |
<label><input type="checkbox" name="export_addons[]" value="<?php echo $val['slug']; ?>" checked /><?php echo $val['title']; ?></label>
|
763 |
<?php }
|
764 |
} ?>
|
765 |
</div>
|
766 |
-
|
767 |
<div class="textarea-wrap">
|
768 |
<textarea id="export_settings_tarea" readonly></textarea>
|
769 |
</div>
|
770 |
-
|
771 |
<button class="export-btn button button-primary button-large"><?php esc_html_e( "Export current settings", "optimisationio" ); ?></button>
|
772 |
|
773 |
<button class="copy-export-btn button button-large hidden"><?php esc_html_e( "Copy to clipboard", "optimisationio" ); ?></button>
|
774 |
</li>
|
775 |
</ul>
|
776 |
-
</div>
|
777 |
<?php
|
778 |
}
|
779 |
}
|
10 |
public static $addons = null;
|
11 |
|
12 |
function __construct() {
|
13 |
+
|
14 |
self::$str_i18n = array(
|
15 |
"n/a" => __( "n/a", "optimisationio" ),
|
16 |
"install" => __( "Install", "optimisationio" ),
|
46 |
require_once( plugin_dir_path( dirname( __FILE__ ) ) . 'views/optimisationio-dashboard.php' );
|
47 |
}
|
48 |
|
49 |
+
public function addons_pages_styles($hook){
|
50 |
if ( 'toplevel_page_optimisationio-dashboard' === $hook ) {
|
51 |
wp_enqueue_style( 'optimisationio-dashboard', plugin_dir_url( dirname( __FILE__ ) ) . 'css/optimisationio-dashboard.css' );
|
52 |
}
|
137 |
if ( ! is_wp_error( $result ) ) {
|
138 |
$ret['error'] = 0;
|
139 |
$ret['msg'] = "Successful activation";
|
140 |
+
|
141 |
switch( $post_req['slug'] ){
|
142 |
case 'wp-disable':
|
143 |
case 'wp-image-compression':
|
150 |
}
|
151 |
|
152 |
switch( $post_req['slug'] ){
|
153 |
+
case 'wp-disable':
|
154 |
ob_start();
|
155 |
self::display_addons__settings('wp-disable');
|
156 |
$ret['plugin_settings_content'] = ob_get_contents();
|
271 |
}
|
272 |
|
273 |
public function ajax_import_addons_settings(){
|
274 |
+
|
275 |
$post_req = $_POST; // Input var okay.
|
276 |
|
277 |
$ret = array( 'error' => 1 );
|
283 |
$ret['type'] = 'invalid_arguments';
|
284 |
}
|
285 |
else{
|
286 |
+
|
287 |
$decoded_data = json_decode( base64_decode( $post_req['data'] ), true );
|
288 |
|
289 |
if( $decoded_data ){
|
301 |
if( isset( $decoded_data[$slug]['cdn_sett'] ) ){
|
302 |
update_option( 'Optimisationio_rev3a_cdnsettings', $decoded_data[$slug]['cdn_sett'] );
|
303 |
}
|
304 |
+
|
305 |
if( isset( $decoded_data[$slug]['general_sett'] ) ){
|
306 |
update_option( 'Optimisationio_rev3a_settings', $decoded_data[$slug]['general_sett'] );
|
307 |
}
|
308 |
+
|
309 |
if( isset( $decoded_data[$slug]['db_opt_sett'] ) ){
|
310 |
update_option( 'Optimisationio_rev3a_dboptimisesetting', $decoded_data[$slug]['db_opt_sett'] );
|
311 |
}
|
315 |
}
|
316 |
break;
|
317 |
case self::$addons_slug[2]: // 'wp-image-compression'.
|
318 |
+
|
319 |
if( isset( $decoded_data[$slug]['general_sett'] ) ){
|
320 |
update_option( '_wpimage_options', $decoded_data[$slug]['general_sett'] );
|
321 |
}
|
323 |
if( isset( $decoded_data[$slug]['cloudinary_sett'] ) ){
|
324 |
update_option( '_wpimage_options_cloudinary', $decoded_data[$slug]['cloudinary_sett'] );
|
325 |
}
|
326 |
+
|
327 |
if( isset( $decoded_data[$slug]['lazy_load_sett'] ) ){
|
328 |
update_option( '_wpimage_lazyload_options', $decoded_data[$slug]['lazy_load_sett'] );
|
329 |
}
|
386 |
}
|
387 |
|
388 |
public function ajax_export_addons_settings(){
|
389 |
+
|
390 |
$post_req = $_POST; // Input var okay.
|
391 |
+
|
392 |
$ret = array( 'error' => null );
|
393 |
|
394 |
if( $this->wp_verify_nonce( $post_req['nonce'], 'optimisationio-import-export-nonce' ) ){
|
413 |
'general_sett' => get_option( 'Optimisationio_rev3a_settings' ),
|
414 |
'db_opt_sett' => get_option( 'Optimisationio_rev3a_dboptimisesetting' ),
|
415 |
'gravatar_cache_sett' => get_option( 'Optimisationio_rev3a_gravatar_cache_settings' ),
|
416 |
+
);
|
417 |
break;
|
418 |
case self::$addons_slug[2]: // 'wp-image-compression'.
|
419 |
$export[$val] = array(
|
629 |
<li><?php esc_html_e( 'Original DB', 'optimisationio' ); ?><span><?php Optimisationio_Dashboard::echo_stats_size( $active_addon, $active_addon ? $cache_info->size : 0 ); ?></span></li>
|
630 |
<li><?php esc_html_e( 'New DB', 'optimisationio' ); ?><span><?php Optimisationio_Dashboard::echo_stats_size( $active_addon, $active_addon ? $cache_info->optimised_size : 0 ); ?></span></li>
|
631 |
<li><?php esc_html_e( 'Savings', 'optimisationio' ); ?><span><?php Optimisationio_Dashboard::echo_stats_size( $active_addon, $active_addon ? $cache_info->saving : 0 ); ?></span></li>
|
632 |
+
</ul>
|
633 |
<ul class="cache-and-database-list">
|
634 |
<li><?php esc_html_e('Pages average load time', 'optimisationio'); ?><span><?php echo $active_addon ? Optimisationio::average_pages_load_time() : '<i class="n_a">' . self::$str_i18n['n/a'] . '</i>'; ?></span></li>
|
635 |
</ul>
|
660 |
public static function display_stats__measurements(){ ?>
|
661 |
<div class="statistics-measurements">
|
662 |
<div class="stats-section">
|
663 |
+
<div class="stats-part">
|
664 |
<?php self::display_stats__compress_images(); ?>
|
665 |
</div>
|
666 |
+
<div class="stats-part">
|
667 |
<?php self::display_stats__cache_and_database_and_wp_disable(); ?>
|
668 |
</div>
|
669 |
</div>
|
710 |
return $ret;
|
711 |
}
|
712 |
|
713 |
+
public static function checkbox_component($name='', $checked=false){
|
714 |
$id = '' !== $name ? 'id-' . $name : 'tmp-id-' . substr(uniqid(), -4);
|
715 |
?>
|
716 |
<div class="optio-check-component">
|
719 |
</div> <?php
|
720 |
}
|
721 |
|
722 |
+
public static function sidebar_tabs_section_content(){
|
723 |
if( null === self::$addons ){
|
724 |
self::init_addons();
|
725 |
}
|
739 |
<ul>
|
740 |
<?php if( self::addon_activated('wp-disable') ){ ?>
|
741 |
<li data-tab-id="ga">
|
742 |
+
<?php WpPerformance_Admin::offload_google_analytics_settings(); ?>
|
743 |
</li>
|
744 |
<?php } ?>
|
745 |
<li data-tab-id="imp">
|
747 |
<div class="textarea-wrap">
|
748 |
<textarea id="import_settings_tarea"></textarea>
|
749 |
</div>
|
750 |
+
|
751 |
<button class="import-btn button button-primary button-large" disabled><?php esc_html_e( "Import settings", "optimisationio" ); ?></button>
|
752 |
+
|
753 |
<button class="clear-import-btn button button-large hidden"><?php esc_html_e( "Clear", "optimisationio" ); ?></button>
|
754 |
</li>
|
755 |
<li data-tab-id="exp">
|
756 |
+
|
757 |
<p><?php esc_html_e("Select the add-οns whose settings you want to include in the exported data", "optimisationio"); ?></p>
|
758 |
|
759 |
<div class="export-addons-list-options">
|
760 |
+
<?php foreach ($addons as $key => $val) {
|
761 |
if( self::addon_activated($key) ){ ?>
|
762 |
<label><input type="checkbox" name="export_addons[]" value="<?php echo $val['slug']; ?>" checked /><?php echo $val['title']; ?></label>
|
763 |
<?php }
|
764 |
} ?>
|
765 |
</div>
|
766 |
+
|
767 |
<div class="textarea-wrap">
|
768 |
<textarea id="export_settings_tarea" readonly></textarea>
|
769 |
</div>
|
770 |
+
|
771 |
<button class="export-btn button button-primary button-large"><?php esc_html_e( "Export current settings", "optimisationio" ); ?></button>
|
772 |
|
773 |
<button class="copy-export-btn button button-large hidden"><?php esc_html_e( "Copy to clipboard", "optimisationio" ); ?></button>
|
774 |
</li>
|
775 |
</ul>
|
776 |
+
</div>
|
777 |
<?php
|
778 |
}
|
779 |
}
|
lib/class-wpperformance.php
CHANGED
@@ -591,7 +591,7 @@ class WpPerformance {
|
|
591 |
|
592 |
$settings = $this->get_settings_values();
|
593 |
|
594 |
-
if( ! $settings['dns_prefetch'] ) {
|
595 |
return;
|
596 |
}
|
597 |
|
591 |
|
592 |
$settings = $this->get_settings_values();
|
593 |
|
594 |
+
if( ! isset( $settings['dns_prefetch'] ) || ! $settings['dns_prefetch'] ) {
|
595 |
return;
|
596 |
}
|
597 |
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== Reduce HTTP Requests, Disable Emojis & Disable Embeds, Speedup WooCommerce ===
|
2 |
Contributors: pigeonhut, Jody Nesbitt, optimisation.io
|
3 |
-
Tags: Disable Emoji, Disable Embeds, Disable Gravatars, Remove Querystrings, Reduce HTTP Requests, speedup WooCommerce, Close comments
|
4 |
Requires at least: 4.5
|
5 |
-
Tested up to: 4.8.
|
6 |
-
Stable tag: 1.5.
|
7 |
License: GPLv2 or later
|
8 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -77,6 +77,12 @@ You can try our <a href="https://wordpress.org/plugins/wp-image-compression/">Fr
|
|
77 |
|
78 |
|
79 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
= 1.5.12 =
|
81 |
* WooCommerce bugs fixed
|
82 |
* Syntax error fixed
|
1 |
=== Reduce HTTP Requests, Disable Emojis & Disable Embeds, Speedup WooCommerce ===
|
2 |
Contributors: pigeonhut, Jody Nesbitt, optimisation.io
|
3 |
+
Tags: Disable Emoji, Disable Embeds, Disable Gravatars, Remove Querystrings, Reduce HTTP Requests, speedup WooCommerce, Close comments, Optimization
|
4 |
Requires at least: 4.5
|
5 |
+
Tested up to: 4.8.2
|
6 |
+
Stable tag: 1.5.13
|
7 |
License: GPLv2 or later
|
8 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
77 |
|
78 |
|
79 |
== Changelog ==
|
80 |
+
= 1.5.13 =
|
81 |
+
* Added Settings link on main Installed Plugin view
|
82 |
+
* General code tidy up
|
83 |
+
* PHP 7.1 compatabile
|
84 |
+
* WP 4.8.2 tested
|
85 |
+
|
86 |
= 1.5.12 =
|
87 |
* WooCommerce bugs fixed
|
88 |
* Syntax error fixed
|
views/optimisationio-dashboard.php
CHANGED
@@ -8,16 +8,16 @@ $addons = Optimisationio_Dashboard::$addons;
|
|
8 |
<div class="statistics-wrap">
|
9 |
|
10 |
<div class="statistics-wrap-inner">
|
11 |
-
|
12 |
<div class="statistics-top">
|
13 |
<div class="statistics-top-cell logo">
|
14 |
<img src="<?php echo esc_url( plugin_dir_url( dirname( __FILE__ ) ) . 'images/logo-optimisation.png' ); ?>" alt="" />
|
15 |
</div>
|
16 |
<div class="statistics-top-cell manual-optimisation">
|
17 |
-
<a href="https://optimisation.io/
|
18 |
</div>
|
19 |
<div class="statistics-top-cell support">
|
20 |
-
<a href="https://
|
21 |
</div>
|
22 |
</div>
|
23 |
|
@@ -28,11 +28,11 @@ $addons = Optimisationio_Dashboard::$addons;
|
|
28 |
<li data-tab="images"><?php _e('Compress Images', 'optimisationio');?></li>
|
29 |
<li data-tab="cache"><?php _e('Cache & Database', 'optimisationio');?></li>
|
30 |
</ul>
|
31 |
-
|
32 |
<div class="statistics-tabs-content-wrap">
|
33 |
|
34 |
<div data-tab="disable" class="statistics-tab-content"> <?php
|
35 |
-
if( ! $addons['wp-disable']['activated'] ){
|
36 |
Optimisationio_Dashboard::display_addons__activation_section('wp-disable');
|
37 |
}
|
38 |
else{
|
@@ -40,7 +40,7 @@ $addons = Optimisationio_Dashboard::$addons;
|
|
40 |
}
|
41 |
?>
|
42 |
</div>
|
43 |
-
|
44 |
<div data-tab="images" class="statistics-tab-content"> <?php
|
45 |
if( ! $addons['wp-image-compression']['activated'] ){
|
46 |
Optimisationio_Dashboard::display_addons__activation_section('wp-image-compression');
|
@@ -62,7 +62,7 @@ $addons = Optimisationio_Dashboard::$addons;
|
|
62 |
</div>
|
63 |
|
64 |
</div>
|
65 |
-
|
66 |
</div>
|
67 |
|
68 |
</div><!-- // .statistics-wrap -->
|
@@ -93,4 +93,4 @@ $addons = Optimisationio_Dashboard::$addons;
|
|
93 |
|
94 |
<?php wp_nonce_field( 'optimisationio-addons-nonce', 'optimisationio_addons_nonce' ); ?>
|
95 |
<?php wp_nonce_field( 'optimisationio-import-export-nonce', 'optimisationio_import_export_nonce' ); ?>
|
96 |
-
</div>
|
8 |
<div class="statistics-wrap">
|
9 |
|
10 |
<div class="statistics-wrap-inner">
|
11 |
+
|
12 |
<div class="statistics-top">
|
13 |
<div class="statistics-top-cell logo">
|
14 |
<img src="<?php echo esc_url( plugin_dir_url( dirname( __FILE__ ) ) . 'images/logo-optimisation.png' ); ?>" alt="" />
|
15 |
</div>
|
16 |
<div class="statistics-top-cell manual-optimisation">
|
17 |
+
<a href="https://optimisation.io/faq/" title="" target="_blank"><img src="<?php echo esc_url( plugin_dir_url( dirname( __FILE__ ) ) . 'images/logo-optimisation-line.png' ); ?>" alt="" /><?php _e( 'Help and Support' , 'optimisationio' ); ?></a>
|
18 |
</div>
|
19 |
<div class="statistics-top-cell support">
|
20 |
+
<a href="https://www.paypal.me/web9/10" title="" target="_blank"><img src="<?php echo esc_url( plugin_dir_url( dirname( __FILE__ ) ) . 'images/icon-support.png' ); ?>" alt="" /><?php _e( 'Donate and help us build the ultimate optimisation suite' , 'optimisationio' ); ?></a>
|
21 |
</div>
|
22 |
</div>
|
23 |
|
28 |
<li data-tab="images"><?php _e('Compress Images', 'optimisationio');?></li>
|
29 |
<li data-tab="cache"><?php _e('Cache & Database', 'optimisationio');?></li>
|
30 |
</ul>
|
31 |
+
|
32 |
<div class="statistics-tabs-content-wrap">
|
33 |
|
34 |
<div data-tab="disable" class="statistics-tab-content"> <?php
|
35 |
+
if( ! $addons['wp-disable']['activated'] ){
|
36 |
Optimisationio_Dashboard::display_addons__activation_section('wp-disable');
|
37 |
}
|
38 |
else{
|
40 |
}
|
41 |
?>
|
42 |
</div>
|
43 |
+
|
44 |
<div data-tab="images" class="statistics-tab-content"> <?php
|
45 |
if( ! $addons['wp-image-compression']['activated'] ){
|
46 |
Optimisationio_Dashboard::display_addons__activation_section('wp-image-compression');
|
62 |
</div>
|
63 |
|
64 |
</div>
|
65 |
+
|
66 |
</div>
|
67 |
|
68 |
</div><!-- // .statistics-wrap -->
|
93 |
|
94 |
<?php wp_nonce_field( 'optimisationio-addons-nonce', 'optimisationio_addons_nonce' ); ?>
|
95 |
<?php wp_nonce_field( 'optimisationio-import-export-nonce', 'optimisationio_import_export_nonce' ); ?>
|
96 |
+
</div>
|
wpperformance.php
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
/**
|
3 |
* Plugin Name: WP Disable
|
4 |
* Plugin URI: https://optimisation.io
|
5 |
-
* Description: Improve WordPress performance by disabling unused items.
|
6 |
* Author: pigeonhut, Jody Nesbitt, optimisation.io
|
7 |
* Author URI:https://optimisation.io
|
8 |
-
* Version: 1.5.
|
9 |
*
|
10 |
* Copyright (C) 2017 Optimisation.io
|
11 |
*/
|
2 |
/**
|
3 |
* Plugin Name: WP Disable
|
4 |
* Plugin URI: https://optimisation.io
|
5 |
+
* Description: Improve WordPress performance by disabling unused items. <a href="admin.php?page=optimisationio-dashboard">Open Settings</a>
|
6 |
* Author: pigeonhut, Jody Nesbitt, optimisation.io
|
7 |
* Author URI:https://optimisation.io
|
8 |
+
* Version: 1.5.13
|
9 |
*
|
10 |
* Copyright (C) 2017 Optimisation.io
|
11 |
*/
|