Version Description
- Kompatibilitt zu WooCommerce
- Einfhrung von Optimus HQ PRO
- Ausfhrlich auf Google+
Download this release
Release Info
Developer | sergej.mueller |
Plugin | Optimus – WordPress Image Optimizer |
Version | 1.3.3 |
Comparing to | |
See all releases |
Code changes from version 1.3.1 to 1.3.3
- inc/optimus.class.php +5 -19
- inc/optimus_hq.class.php +1 -1
- inc/optimus_request.class.php +11 -1
- inc/optimus_settings.class.php +20 -1
- optimus.php +21 -2
- readme.txt +16 -9
inc/optimus.class.php
CHANGED
@@ -49,7 +49,7 @@ class Optimus
|
|
49 |
);
|
50 |
|
51 |
/* Filter */
|
52 |
-
if ( (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) OR (defined('DOING_CRON') && DOING_CRON) OR (defined('DOING_AJAX') && DOING_AJAX) ) {
|
53 |
return;
|
54 |
}
|
55 |
|
@@ -135,30 +135,16 @@ class Optimus
|
|
135 |
)
|
136 |
);
|
137 |
|
|
|
138 |
add_action(
|
139 |
-
'
|
140 |
array(
|
141 |
__CLASS__,
|
142 |
'optimus_requirements_check'
|
143 |
)
|
144 |
);
|
145 |
add_action(
|
146 |
-
'
|
147 |
-
array(
|
148 |
-
__CLASS__,
|
149 |
-
'optimus_requirements_check'
|
150 |
-
)
|
151 |
-
);
|
152 |
-
|
153 |
-
add_action(
|
154 |
-
'network_admin_notices',
|
155 |
-
array(
|
156 |
-
'Optimus_HQ',
|
157 |
-
'optimus_hq_notice'
|
158 |
-
)
|
159 |
-
);
|
160 |
-
add_action(
|
161 |
-
'admin_notices',
|
162 |
array(
|
163 |
'Optimus_HQ',
|
164 |
'optimus_hq_notice'
|
@@ -237,7 +223,7 @@ class Optimus
|
|
237 |
),
|
238 |
network_admin_url('plugins.php#optimus')
|
239 |
),
|
240 |
-
( Optimus_HQ::get_key() ? 'Anderen Optimus HQ Key eingeben' : 'Optimus HQ aktivieren' )
|
241 |
)
|
242 |
)
|
243 |
);
|
49 |
);
|
50 |
|
51 |
/* Filter */
|
52 |
+
if ( (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) OR (defined('DOING_CRON') && DOING_CRON) OR (defined('DOING_AJAX') && DOING_AJAX) OR (defined('XMLRPC_REQUEST') && XMLRPC_REQUEST) ) {
|
53 |
return;
|
54 |
}
|
55 |
|
135 |
)
|
136 |
);
|
137 |
|
138 |
+
/* Admin notices */
|
139 |
add_action(
|
140 |
+
'all_admin_notices',
|
141 |
array(
|
142 |
__CLASS__,
|
143 |
'optimus_requirements_check'
|
144 |
)
|
145 |
);
|
146 |
add_action(
|
147 |
+
'all_admin_notices',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
array(
|
149 |
'Optimus_HQ',
|
150 |
'optimus_hq_notice'
|
223 |
),
|
224 |
network_admin_url('plugins.php#optimus')
|
225 |
),
|
226 |
+
( Optimus_HQ::get_key() ? 'Anderen Optimus HQ Key eingeben' : '<span style="color:#006505">Optimus HQ aktivieren</span>' )
|
227 |
)
|
228 |
)
|
229 |
);
|
inc/optimus_hq.class.php
CHANGED
@@ -369,7 +369,7 @@ class Optimus_HQ
|
|
369 |
break;
|
370 |
|
371 |
case 'locked':
|
372 |
-
$msg = 'Optimus ist aktuell nur eingeschränkt nutzbar.<br /><strong>Optimus HQ</strong> beherrscht mehr Bildformate, komprimiert größere Dateien und erlaubt Anfragen von
|
373 |
$class = 'error';
|
374 |
break;
|
375 |
|
369 |
break;
|
370 |
|
371 |
case 'locked':
|
372 |
+
$msg = 'Optimus ist aktuell nur eingeschränkt nutzbar.<br /><strong>Optimus HQ</strong> (Premium) beherrscht mehr Bildformate, komprimiert größere Dateien, nutzt HTTPS-Verbindung und erlaubt Anfragen von Blogs außerhalb D-A-CH. Weitere Details auf <a href="http://optimus.io" target="_blank">optimus.io</a><br /><br /><em>Dieser Hinweis hat eine Lebensdauer von 60 Sekunden und erscheint nicht erneut.</em>';
|
373 |
$class = 'error';
|
374 |
break;
|
375 |
|
inc/optimus_request.class.php
CHANGED
@@ -37,7 +37,7 @@ class Optimus_Request
|
|
37 |
* Build optimization for a upload image including previews
|
38 |
*
|
39 |
* @since 0.0.1
|
40 |
-
* @change 1.3.
|
41 |
*
|
42 |
* @param array $upload_data Incoming upload information
|
43 |
* @param integer $attachment_id Attachment ID
|
@@ -50,6 +50,16 @@ class Optimus_Request
|
|
50 |
return $upload_data;
|
51 |
}
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
/* WP upload folder */
|
54 |
$upload_dir = wp_upload_dir();
|
55 |
|
37 |
* Build optimization for a upload image including previews
|
38 |
*
|
39 |
* @since 0.0.1
|
40 |
+
* @change 1.3.3
|
41 |
*
|
42 |
* @param array $upload_data Incoming upload information
|
43 |
* @param integer $attachment_id Attachment ID
|
50 |
return $upload_data;
|
51 |
}
|
52 |
|
53 |
+
/* Only images, please */
|
54 |
+
if ( empty($upload_data['file']) ) {
|
55 |
+
return $upload_data;
|
56 |
+
}
|
57 |
+
|
58 |
+
/* Skip regenerating */
|
59 |
+
if ( ! empty($_REQUEST['action']) && $_REQUEST['action'] === 'regeneratethumbnail' ) {
|
60 |
+
return $upload_data;
|
61 |
+
}
|
62 |
+
|
63 |
/* WP upload folder */
|
64 |
$upload_dir = wp_upload_dir();
|
65 |
|
inc/optimus_settings.class.php
CHANGED
@@ -80,8 +80,10 @@ class Optimus_Settings
|
|
80 |
/**
|
81 |
* Darstellung der Optionsseite
|
82 |
*
|
|
|
83 |
* @since 1.0.0
|
84 |
-
*
|
|
|
85 |
*/
|
86 |
|
87 |
public static function settings_page()
|
@@ -97,6 +99,23 @@ class Optimus_Settings
|
|
97 |
<?php $options = Optimus::get_options() ?>
|
98 |
|
99 |
<table class="form-table">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
<tr valign="top">
|
101 |
<th scope="row">
|
102 |
Bild-Metadaten
|
80 |
/**
|
81 |
* Darstellung der Optionsseite
|
82 |
*
|
83 |
+
* @since 1.3.2 Implementierung von get_intermediate_image_sizes
|
84 |
* @since 1.0.0
|
85 |
+
*
|
86 |
+
* @return void
|
87 |
*/
|
88 |
|
89 |
public static function settings_page()
|
99 |
<?php $options = Optimus::get_options() ?>
|
100 |
|
101 |
<table class="form-table">
|
102 |
+
<?php if ( $sizes = get_intermediate_image_sizes() ) { ?>
|
103 |
+
<tr valign="top">
|
104 |
+
<th scope="row">
|
105 |
+
Bildgrößen
|
106 |
+
</th>
|
107 |
+
<td>
|
108 |
+
<p>
|
109 |
+
<?php echo implode( ', ', array_values($sizes) ) ?>
|
110 |
+
</p>
|
111 |
+
|
112 |
+
<p class="description">
|
113 |
+
Zusätzlich zum Originalbild und abhängig von der Dateigröße verkleinert Optimus die in WordPress registrierten Bildgrößen. [<a href="https://plus.google.com/b/114450218898660299759/114450218898660299759/posts/jZVfeac5eHW" target="_blank">Details</a>]
|
114 |
+
</p>
|
115 |
+
</td>
|
116 |
+
</tr>
|
117 |
+
<?php } ?>
|
118 |
+
|
119 |
<tr valign="top">
|
120 |
<th scope="row">
|
121 |
Bild-Metadaten
|
optimus.php
CHANGED
@@ -1,11 +1,30 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Optimus
|
4 |
-
Description:
|
5 |
Author: Sergej Müller
|
6 |
Author URI: http://wpcoder.de
|
7 |
Plugin URI: https://optimus.io
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
*/
|
10 |
|
11 |
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Optimus
|
4 |
+
Description: Verlustfreie Komprimierung der Upload-Bilder in WordPress. Automatisch, zuverlässig, wirkungsvoll.
|
5 |
Author: Sergej Müller
|
6 |
Author URI: http://wpcoder.de
|
7 |
Plugin URI: https://optimus.io
|
8 |
+
License: GPLv2 or later
|
9 |
+
Version: 1.3.3
|
10 |
+
*/
|
11 |
+
|
12 |
+
/*
|
13 |
+
Copyright (C) 2012-2014 Sergej Müller
|
14 |
+
|
15 |
+
This program is free software; you can redistribute it and/or modify
|
16 |
+
it under the terms of the GNU General Public License as published by
|
17 |
+
the Free Software Foundation; either version 2 of the License, or
|
18 |
+
(at your option) any later version.
|
19 |
+
|
20 |
+
This program is distributed in the hope that it will be useful,
|
21 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
22 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
23 |
+
GNU General Public License for more details.
|
24 |
+
|
25 |
+
You should have received a copy of the GNU General Public License along
|
26 |
+
with this program; if not, write to the Free Software Foundation, Inc.,
|
27 |
+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
28 |
*/
|
29 |
|
30 |
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Contributors: sergej.mueller
|
3 |
Tags: images, optimize, compress, progressive, performance, png, jpeg, webp
|
4 |
Requires at least: 3.8
|
5 |
-
Tested up to: 3.9
|
6 |
Stable tag: trunk
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -67,12 +67,17 @@ NEU für Optimus HQ: Optionale [Konvertierung](https://plus.google.com/b/1144502
|
|
67 |
* Ausgehende Serververbindung
|
68 |
|
69 |
|
|
|
|
|
|
|
|
|
|
|
70 |
= Website =
|
71 |
* [optimus.io](https://optimus.io)
|
72 |
|
73 |
|
74 |
= Autor =
|
75 |
-
* [Twitter](https://twitter.com/
|
76 |
* [Google+](https://plus.google.com/110569673423509816572 "Google+")
|
77 |
* [Plugins](http://wpcoder.de "Plugins")
|
78 |
|
@@ -80,6 +85,15 @@ NEU für Optimus HQ: Optionale [Konvertierung](https://plus.google.com/b/1144502
|
|
80 |
|
81 |
== Changelog ==
|
82 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
= 1.3.1 =
|
84 |
* Anpassung für WordPress 3.9: Sicherstellung der Bildoptimierung im WordPress-Editor
|
85 |
|
@@ -176,13 +190,6 @@ NEU für Optimus HQ: Optionale [Konvertierung](https://plus.google.com/b/1144502
|
|
176 |
|
177 |
|
178 |
|
179 |
-
== Upgrade Notice ==
|
180 |
-
|
181 |
-
= 1.1.0 =
|
182 |
-
*Optimus* wurde auf Freemium Modell umgestellt. [Offizielles Statement](https://plus.google.com/110569673423509816572/posts/XEoHhEi5uJw).
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
== Screenshots ==
|
187 |
|
188 |
1. Anzeige der Komprimierung und der Bildmenge als Kreis
|
2 |
Contributors: sergej.mueller
|
3 |
Tags: images, optimize, compress, progressive, performance, png, jpeg, webp
|
4 |
Requires at least: 3.8
|
5 |
+
Tested up to: 3.9.1
|
6 |
Stable tag: trunk
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
67 |
* Ausgehende Serververbindung
|
68 |
|
69 |
|
70 |
+
= Speicherbelegung =
|
71 |
+
* Im Backend: ~ 0,19 MB
|
72 |
+
* Im Frontend: ~ 0,03 MB
|
73 |
+
|
74 |
+
|
75 |
= Website =
|
76 |
* [optimus.io](https://optimus.io)
|
77 |
|
78 |
|
79 |
= Autor =
|
80 |
+
* [Twitter](https://twitter.com/wpseo)
|
81 |
* [Google+](https://plus.google.com/110569673423509816572 "Google+")
|
82 |
* [Plugins](http://wpcoder.de "Plugins")
|
83 |
|
85 |
|
86 |
== Changelog ==
|
87 |
|
88 |
+
= 1.3.3 =
|
89 |
+
* Kompatibilität zu WooCommerce
|
90 |
+
* Einführung von Optimus HQ PRO
|
91 |
+
* [Ausführlich auf Google+](https://plus.google.com/b/114450218898660299759/114450218898660299759/posts/iNDtLhWw4p2)
|
92 |
+
|
93 |
+
= 1.3.2 =
|
94 |
+
* Anzeige der in WordPress registrierten Bildgrößen (Thumbnails)
|
95 |
+
* [Ausführlich auf Google+](https://plus.google.com/b/114450218898660299759/114450218898660299759/posts/jZVfeac5eHW)
|
96 |
+
|
97 |
= 1.3.1 =
|
98 |
* Anpassung für WordPress 3.9: Sicherstellung der Bildoptimierung im WordPress-Editor
|
99 |
|
190 |
|
191 |
|
192 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
== Screenshots ==
|
194 |
|
195 |
1. Anzeige der Komprimierung und der Bildmenge als Kreis
|