Smush Image Compression and Optimization - Version 1.4.1

Version Description

Download this release

Release Info

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

Code changes from version 1.4.0 to 1.4.1

Files changed (3) hide show
  1. bulk.php +1 -1
  2. readme.txt +4 -4
  3. wp-smushit.php +3 -11
bulk.php CHANGED
@@ -44,7 +44,7 @@
44
  wp_update_attachment_metadata( $attachment->ID, $meta );
45
 
46
  // rate limiting is good manners, let's be nice to Yahoo!
47
- // sleep(0.5);
48
  @ob_flush();
49
  flush();
50
  }
44
  wp_update_attachment_metadata( $attachment->ID, $meta );
45
 
46
  // rate limiting is good manners, let's be nice to Yahoo!
47
+ sleep(0.5);
48
  @ob_flush();
49
  flush();
50
  }
readme.txt CHANGED
@@ -1,13 +1,13 @@
1
  === WP Smush.it ===
2
  Plugin Name: WP Smush.it
3
- Version: 1.4.0
4
  Author: Dialect
5
  Author URI: http://dialect.ca/?wp_smush_it
6
  Contributors: alexdunae
7
  Tags: images, image, attachments, attachment
8
- Requires at least: 2.8
9
  Tested up to: 3.2.1
10
- Stable tag: 1.4.0
11
 
12
  Reduce image file sizes and improve performance using the <a href="http://smush.it/">Smush.it</a> API within WordPress.
13
 
@@ -28,7 +28,7 @@ Every image you add to a page or post will be automatically run through Smush.it
28
  = Existing images =
29
  You can also run your existing images through Smush.it via the WordPress `Media Library`. Click on the `Smush.it now!` link for any image you'd like to smush.
30
 
31
- As of version 1.3.5 there is a new, experimental `Bulk Smush.it` feature. You can find the link under the `Media Library` tab.
32
 
33
  = Privacy =
34
  Be sure you&rsquo;re comfortable with Smush.it&rsquo;s privacy policy (found on their <a href="http://info.yahoo.com/legal/us/yahoo/smush_it/smush_it-4378.html">FAQ</a>).
1
  === WP Smush.it ===
2
  Plugin Name: WP Smush.it
3
+ Version: 1.4.1
4
  Author: Dialect
5
  Author URI: http://dialect.ca/?wp_smush_it
6
  Contributors: alexdunae
7
  Tags: images, image, attachments, attachment
8
+ Requires at least: 2.9
9
  Tested up to: 3.2.1
10
+ Stable tag: 1.4.1
11
 
12
  Reduce image file sizes and improve performance using the <a href="http://smush.it/">Smush.it</a> API within WordPress.
13
 
28
  = Existing images =
29
  You can also run your existing images through Smush.it via the WordPress `Media Library`. Click on the `Smush.it now!` link for any image you'd like to smush.
30
 
31
+ As of version 1.4.0 there is a new, experimental `Bulk Smush.it` feature. You can find the link under the `Media Library` tab.
32
 
33
  = Privacy =
34
  Be sure you&rsquo;re comfortable with Smush.it&rsquo;s privacy policy (found on their <a href="http://info.yahoo.com/legal/us/yahoo/smush_it/smush_it-4378.html">FAQ</a>).
wp-smushit.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Integrate the Smush.it API into WordPress.
4
- * @version 1.4.0
5
  * @package WP_SmushIt
6
  */
7
  /*
@@ -9,7 +9,7 @@ Plugin Name: WP Smush.it
9
  Plugin URI: http://dialect.ca/code/wp-smushit/
10
  Description: Reduce image file sizes and improve performance using the <a href="http://smush.it/">Smush.it</a> API within WordPress.
11
  Author: Dialect
12
- Version: 1.4.0
13
  Author URI: http://dialect.ca/
14
  */
15
 
@@ -28,16 +28,13 @@ define('SMUSHIT_REQ_URL', 'http://www.smushit.com/ysmush.it/ws.php?img=%s');
28
  define('SMUSHIT_BASE_URL', 'http://www.smushit.com/');
29
 
30
  define('WP_SMUSHIT_DOMAIN', 'wp_smushit');
31
- define('WP_SMUSHIT_UA', 'WP Smush.it/1.4.0 (+http://dialect.ca/code/wp-smushit)');
32
- define('WP_SMUSHIT_GIF_TO_PNG', intval(get_option('wp_smushit_gif_to_png')));
33
  define('WP_SMUSHIT_PLUGIN_DIR', dirname(plugin_basename(__FILE__)));
34
 
35
 
36
  /**
37
  * Hooks
38
  */
39
- register_activation_hook(__FILE__,'wp_smushit_install');
40
-
41
  add_filter('wp_generate_attachment_metadata', 'wp_smushit_resize_from_meta_data', 10, 2);
42
  add_filter('manage_media_columns', 'wp_smushit_columns');
43
  add_action('manage_media_custom_column', 'wp_smushit_custom_column', 10, 2);
@@ -47,11 +44,6 @@ add_action('admin_action_wp_smushit_manual', 'wp_smushit_manual');
47
  /**
48
  * Plugin admin functions
49
  */
50
- function wp_smushit_install() {
51
- // clean up from previous versions
52
- delete_option('wp_smushit_gif_to_png');
53
- }
54
-
55
  function wp_smushit_admin_init() {
56
  load_plugin_textdomain(WP_SMUSHIT_DOMAIN);
57
  wp_enqueue_script('common');
1
  <?php
2
  /**
3
  * Integrate the Smush.it API into WordPress.
4
+ * @version 1.4.1
5
  * @package WP_SmushIt
6
  */
7
  /*
9
  Plugin URI: http://dialect.ca/code/wp-smushit/
10
  Description: Reduce image file sizes and improve performance using the <a href="http://smush.it/">Smush.it</a> API within WordPress.
11
  Author: Dialect
12
+ Version: 1.4.1
13
  Author URI: http://dialect.ca/
14
  */
15
 
28
  define('SMUSHIT_BASE_URL', 'http://www.smushit.com/');
29
 
30
  define('WP_SMUSHIT_DOMAIN', 'wp_smushit');
31
+ define('WP_SMUSHIT_UA', 'WP Smush.it/1.4.1 (+http://dialect.ca/code/wp-smushit)');
 
32
  define('WP_SMUSHIT_PLUGIN_DIR', dirname(plugin_basename(__FILE__)));
33
 
34
 
35
  /**
36
  * Hooks
37
  */
 
 
38
  add_filter('wp_generate_attachment_metadata', 'wp_smushit_resize_from_meta_data', 10, 2);
39
  add_filter('manage_media_columns', 'wp_smushit_columns');
40
  add_action('manage_media_custom_column', 'wp_smushit_custom_column', 10, 2);
44
  /**
45
  * Plugin admin functions
46
  */
 
 
 
 
 
47
  function wp_smushit_admin_init() {
48
  load_plugin_textdomain(WP_SMUSHIT_DOMAIN);
49
  wp_enqueue_script('common');