Categories Images - Version 2.4.1

Version Description

  • Fix placeholder bug in backend.
Download this release

Release Info

Developer elzahlan
Plugin Icon 128x128 Categories Images
Version 2.4.1
Comparing to
See all releases

Code changes from version 2.4 to 2.4.1

Files changed (2) hide show
  1. categories-images.php +5 -5
  2. readme.txt +4 -1
categories-images.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: http://zahlan.net/blog/2012/06/categories-images/
5
  * Description: Categories Images Plugin allow you to add an image to category or any custom term.
6
  * Author: Muhammad Said El Zahlan
7
- * Version: 2.4
8
  * Author URI: http://zahlan.net/
9
  */
10
  ?>
@@ -72,13 +72,13 @@ function z_edit_texonomy_field($taxonomy) {
72
  wp_enqueue_script('thickbox');
73
  }
74
 
75
- if (z_taxonomy_image_url( $taxonomy->term_id, TRUE ) == Z_IMAGE_PLACEHOLDER)
76
  $image_text = "";
77
  else
78
- $image_text = z_taxonomy_image_url( $taxonomy->term_id, TRUE );
79
  echo '<tr class="form-field">
80
  <th scope="row" valign="top"><label for="taxonomy_image">' . __('Image', 'zci') . '</label></th>
81
- <td><img class="taxonomy-image" src="' . z_taxonomy_image_url( $taxonomy->term_id, TRUE ) . '"/><br/><input type="text" name="taxonomy_image" id="taxonomy_image" value="'.$image_text.'" /><br />
82
  <button class="z_upload_image_button button">' . __('Upload/Add image', 'zci') . '</button>
83
  <button class="z_remove_image_button button">' . __('Remove image', 'zci') . '</button>
84
  </td>
@@ -239,7 +239,7 @@ function z_taxonomy_columns( $columns ) {
239
  */
240
  function z_taxonomy_column( $columns, $column, $id ) {
241
  if ( $column == 'thumb' )
242
- $columns = '<span><img src="' . z_taxonomy_image_url($id, TRUE) . '" alt="' . __('Thumbnail', 'zci') . '" class="wp-post-image" /></span>';
243
 
244
  return $columns;
245
  }
4
  * Plugin URI: http://zahlan.net/blog/2012/06/categories-images/
5
  * Description: Categories Images Plugin allow you to add an image to category or any custom term.
6
  * Author: Muhammad Said El Zahlan
7
+ * Version: 2.4.1
8
  * Author URI: http://zahlan.net/
9
  */
10
  ?>
72
  wp_enqueue_script('thickbox');
73
  }
74
 
75
+ if (z_taxonomy_image_url( $taxonomy->term_id, NULL, TRUE ) == Z_IMAGE_PLACEHOLDER)
76
  $image_text = "";
77
  else
78
+ $image_text = z_taxonomy_image_url( $taxonomy->term_id, NULL, TRUE );
79
  echo '<tr class="form-field">
80
  <th scope="row" valign="top"><label for="taxonomy_image">' . __('Image', 'zci') . '</label></th>
81
+ <td><img class="taxonomy-image" src="' . z_taxonomy_image_url( $taxonomy->term_id, NULL, TRUE ) . '"/><br/><input type="text" name="taxonomy_image" id="taxonomy_image" value="'.$image_text.'" /><br />
82
  <button class="z_upload_image_button button">' . __('Upload/Add image', 'zci') . '</button>
83
  <button class="z_remove_image_button button">' . __('Remove image', 'zci') . '</button>
84
  </td>
239
  */
240
  function z_taxonomy_column( $columns, $column, $id ) {
241
  if ( $column == 'thumb' )
242
+ $columns = '<span><img src="' . z_taxonomy_image_url($id, NULL, TRUE) . '" alt="' . __('Thumbnail', 'zci') . '" class="wp-post-image" /></span>';
243
 
244
  return $columns;
245
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: Category Image, Category Images, Categories Images, taxonomy image, taxonomy images, taxonomies images, category icon, categories icons, category logo, categories logos, admin, wp-admin, category image plugin, categories images plugin
5
  Requires at least: 2.8
6
  Tested up to: 3.8
7
- Stable tag: 2.4
8
 
9
  The Categories Images Plugin allow you to add image with category or taxonomy.
10
 
@@ -57,6 +57,9 @@ Please check the documentation page:
57
 
58
  == Changelog ==
59
 
 
 
 
60
  = 2.4 =
61
  * Adding language support for Spanish (Thansk so much to Maria Ramos [http://webhostinghub.com]).
62
  * Adding support for resizing categories images (Thanks so much to Rahil Wazir).
4
  Tags: Category Image, Category Images, Categories Images, taxonomy image, taxonomy images, taxonomies images, category icon, categories icons, category logo, categories logos, admin, wp-admin, category image plugin, categories images plugin
5
  Requires at least: 2.8
6
  Tested up to: 3.8
7
+ Stable tag: 2.4.1
8
 
9
  The Categories Images Plugin allow you to add image with category or taxonomy.
10
 
57
 
58
  == Changelog ==
59
 
60
+ = 2.4.1 =
61
+ * Fix placeholder bug in backend.
62
+
63
  = 2.4 =
64
  * Adding language support for Spanish (Thansk so much to Maria Ramos [http://webhostinghub.com]).
65
  * Adding support for resizing categories images (Thanks so much to Rahil Wazir).