Version Description
- Disable smushing, until smush service resumes
Download this release
Release Info
Developer | UmeshSingla |
Plugin | Smush Image Compression and Optimization |
Version | 1.7.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.7.1 to 1.7.1.1
- readme.txt +5 -2
- wp-smushit.php +4 -2
readme.txt
CHANGED
@@ -1,13 +1,13 @@
|
|
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.”
|
@@ -80,6 +80,9 @@ This will give us a good foundation to start adding some new features!
|
|
80 |
|
81 |
== Changelog ==
|
82 |
|
|
|
|
|
|
|
83 |
= 1.7.1 =
|
84 |
* Add depreciated warnings about Smush.it outage
|
85 |
|
1 |
=== WP Smush.it ===
|
2 |
Plugin Name: WP Smush.it
|
3 |
+
Version: 1.7.1.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.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.”
|
80 |
|
81 |
== Changelog ==
|
82 |
|
83 |
+
= 1.7.1.1 =
|
84 |
+
* Disable smushing, until smush service resumes
|
85 |
+
|
86 |
= 1.7.1 =
|
87 |
* Add depreciated warnings about Smush.it outage
|
88 |
|
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.1
|
8 |
Author URI: http://premium.wpmudev.org/
|
9 |
Textdomain: wp_smushit
|
10 |
*/
|
@@ -84,7 +84,7 @@ if ( ! class_exists( 'WpSmushit' ) ) {
|
|
84 |
* Hooks
|
85 |
*/
|
86 |
if ( WP_SMUSHIT_AUTO == WP_SMUSHIT_AUTO_OK ) {
|
87 |
-
add_filter( 'wp_generate_attachment_metadata', array( &$this, 'resize_from_meta_data' ), 10, 2 );
|
88 |
}
|
89 |
add_filter( 'manage_media_columns', array( &$this, 'columns' ) );
|
90 |
add_action( 'manage_media_custom_column', array( &$this, 'custom_column' ), 10, 2 );
|
@@ -141,6 +141,8 @@ if ( ! class_exists( 'WpSmushit' ) ) {
|
|
141 |
*/
|
142 |
function do_smushit( $attachment_id, $file_path = '', $file_url = '' ) {
|
143 |
global $log;
|
|
|
|
|
144 |
|
145 |
if ( empty( $file_path ) ) {
|
146 |
return __( "File path is empty", WP_SMUSHIT_DOMAIN );
|
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.1
|
8 |
Author URI: http://premium.wpmudev.org/
|
9 |
Textdomain: wp_smushit
|
10 |
*/
|
84 |
* Hooks
|
85 |
*/
|
86 |
if ( WP_SMUSHIT_AUTO == WP_SMUSHIT_AUTO_OK ) {
|
87 |
+
// add_filter( 'wp_generate_attachment_metadata', array( &$this, 'resize_from_meta_data' ), 10, 2 );
|
88 |
}
|
89 |
add_filter( 'manage_media_columns', array( &$this, 'columns' ) );
|
90 |
add_action( 'manage_media_custom_column', array( &$this, 'custom_column' ), 10, 2 );
|
141 |
*/
|
142 |
function do_smushit( $attachment_id, $file_path = '', $file_url = '' ) {
|
143 |
global $log;
|
144 |
+
//API calls disabled until new Smush comes back
|
145 |
+
return __( "Smush service currently unavailable", WP_SMUSHIT_DOMAIN);
|
146 |
|
147 |
if ( empty( $file_path ) ) {
|
148 |
return __( "File path is empty", WP_SMUSHIT_DOMAIN );
|