Smush Image Compression and Optimization - Version 1.0.2

Version Description

Download this release

Release Info

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

Code changes from version 1.0.1 to 1.0.2

Files changed (2) hide show
  1. readme.txt +2 -2
  2. wp-smushit.php +6 -3
readme.txt CHANGED
@@ -1,13 +1,13 @@
1
  === WP Smush.it ===
2
  Plugin Name: WP Smush.it
3
- Version: 1.0.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.5
9
  Tested up to: 2.7
10
- Stable tag: 1.0.1
11
 
12
  Reduce image file sizes and improve performance using the <a href="http://smush.it/">Smush.it</a> API within WordPress.
13
 
1
  === WP Smush.it ===
2
  Plugin Name: WP Smush.it
3
+ Version: 1.0.2
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.5
9
  Tested up to: 2.7
10
+ Stable tag: 1.0.2
11
 
12
  Reduce image file sizes and improve performance using the <a href="http://smush.it/">Smush.it</a> API within WordPress.
13
 
wp-smushit.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Integrate the Smush.it API into WordPress.
4
- * @version 1.0.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.0.0
13
  Author URI: http://dialect.ca/?wp_smush_it
14
  */
15
 
@@ -183,7 +183,10 @@ function wp_smushit_columns($defaults) {
183
  function wp_smushit_custom_column($column_name, $id) {
184
  if( $column_name == 'smushit' ) {
185
  $data = wp_get_attachment_metadata($id);
186
- print isset($data['wp_smushit']) ? $data['wp_smushit'] : __('Not processed', WP_SMUSHIT_DOMAIN);
 
 
 
187
  }
188
  }
189
 
1
  <?php
2
  /**
3
  * Integrate the Smush.it API into WordPress.
4
+ * @version 1.0.2
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.0.2
13
  Author URI: http://dialect.ca/?wp_smush_it
14
  */
15
 
183
  function wp_smushit_custom_column($column_name, $id) {
184
  if( $column_name == 'smushit' ) {
185
  $data = wp_get_attachment_metadata($id);
186
+ if ( isset($data['wp_smushit']) && !empty($data['wp_smushit']) )
187
+ print $data['wp_smushit'];
188
+ else
189
+ print __('Not processed', WP_SMUSHIT_DOMAIN);
190
  }
191
  }
192