Taxonomy Images - Version 0.9.6

Version Description

Fixed issue where if no terms have images but 'having_images' is false, nothing would be returned (props Matt).

Download this release

Release Info

Developer husobj
Plugin Icon 128x128 Taxonomy Images
Version 0.9.6
Comparing to
See all releases

Code changes from version 0.9.5 to 0.9.6

Files changed (5) hide show
  1. CHANGELOG.md +7 -1
  2. README.md +3 -0
  3. public-filters.php +1 -1
  4. readme.txt +7 -1
  5. taxonomy-images.php +2 -2
CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).
4
 
5
  ## [Unreleased]
6
 
 
 
 
 
 
7
  ## [0.9.5] - 2016-04-09
8
 
9
  ### Fixed
@@ -203,7 +208,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
203
  ### Added
204
  - Original Release - Works with WordPress 2.9.1.
205
 
206
- [Unreleased]: https://github.com/benhuson/Taxonomy-Images/compare/0.9.5...HEAD
 
207
  [0.9.5]: https://github.com/benhuson/Taxonomy-Images/compare/0.9.4...0.9.5
208
  [0.9.4]: https://github.com/benhuson/Taxonomy-Images/compare/0.9.3...0.9.4
209
  [0.9.3]: https://github.com/benhuson/Taxonomy-Images/compare/0.9.2...0.9.3
4
 
5
  ## [Unreleased]
6
 
7
+ ## [0.9.6] - 2016-05-03
8
+
9
+ ### Fixed
10
+ - Fix issue where if no terms have images but 'having_images' is false, nothing would be returned (props Matt).
11
+
12
  ## [0.9.5] - 2016-04-09
13
 
14
  ### Fixed
208
  ### Added
209
  - Original Release - Works with WordPress 2.9.1.
210
 
211
+ [Unreleased]: https://github.com/benhuson/Taxonomy-Images/compare/0.9.6...HEAD
212
+ [0.9.6]: https://github.com/benhuson/Taxonomy-Images/compare/0.9.5...0.9.6
213
  [0.9.5]: https://github.com/benhuson/Taxonomy-Images/compare/0.9.4...0.9.5
214
  [0.9.4]: https://github.com/benhuson/Taxonomy-Images/compare/0.9.3...0.9.4
215
  [0.9.3]: https://github.com/benhuson/Taxonomy-Images/compare/0.9.2...0.9.3
README.md CHANGED
@@ -221,6 +221,9 @@ Installation
221
  Upgrade Notice
222
  --------------
223
 
 
 
 
224
  ### 0.9.5
225
  Fix loading of admin stylesheet when editing terms in WordPress 4.5
226
 
221
  Upgrade Notice
222
  --------------
223
 
224
+ ### 0.9.6
225
+ Fixed issue where if no terms have images but 'having_images' is false, nothing would be returned (props Matt).
226
+
227
  ### 0.9.5
228
  Fix loading of admin stylesheet when editing terms in WordPress 4.5
229
 
public-filters.php CHANGED
@@ -90,7 +90,7 @@ function taxonomy_images_plugin_get_terms( $default, $args = array() ) {
90
  }
91
 
92
  $assoc = taxonomy_image_plugin_get_associations();
93
- if ( empty( $assoc ) ) {
94
  return array();
95
  }
96
 
90
  }
91
 
92
  $assoc = taxonomy_image_plugin_get_associations();
93
+ if ( ! empty( $args['having_images'] ) && empty( $assoc ) ) {
94
  return array();
95
  }
96
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted
4
  Tags: taxonomy, tag, category, term, image, upload, media
5
  Requires at least: 3.4
6
  Tested up to: 4.5
7
- Stable tag: 0.9.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -209,6 +209,9 @@ The original author of this plugin, Michael Fields, released a handful of plugin
209
 
210
  == Upgrade Notice ==
211
 
 
 
 
212
  = 0.9.5 =
213
  Fix loading of admin stylesheet when editing terms in WordPress 4.5
214
 
@@ -235,6 +238,9 @@ Complete rewrite. Better everything. Many bug fixes.
235
 
236
  == Changelog ==
237
 
 
 
 
238
  = 0.9.5 =
239
  * __BUGFIX:__ Fix loading of admin stylesheet when editing terms in WordPress 4.5
240
 
4
  Tags: taxonomy, tag, category, term, image, upload, media
5
  Requires at least: 3.4
6
  Tested up to: 4.5
7
+ Stable tag: 0.9.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
209
 
210
  == Upgrade Notice ==
211
 
212
+ = 0.9.6 =
213
+ Fixed issue where if no terms have images but 'having_images' is false, nothing would be returned (props Matt).
214
+
215
  = 0.9.5 =
216
  Fix loading of admin stylesheet when editing terms in WordPress 4.5
217
 
238
 
239
  == Changelog ==
240
 
241
+ = 0.9.6 =
242
+ * __BUGFIX:__ Fix issue where if no terms have images but 'having_images' is false, nothing would be returned (props Matt).
243
+
244
  = 0.9.5 =
245
  * __BUGFIX:__ Fix loading of admin stylesheet when editing terms in WordPress 4.5
246
 
taxonomy-images.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Taxonomy Images
5
  Plugin URI: https://github.com/benhuson/Taxonomy-Images
6
  Description: Associate images from your media library to categories, tags and custom taxonomies.
7
- Version: 0.9.5
8
  Author: Michael Fields, Ben Huson
9
  Author URI: https://github.com/benhuson
10
  License: GNU General Public License v2 or later
@@ -40,7 +40,7 @@ require_once( trailingslashit( dirname( __FILE__ ) ) . 'public-filters.php' );
40
  * @alter 0.7.4
41
  */
42
  function taxonomy_image_plugin_version() {
43
- return '0.9.5';
44
  }
45
 
46
 
4
  Plugin Name: Taxonomy Images
5
  Plugin URI: https://github.com/benhuson/Taxonomy-Images
6
  Description: Associate images from your media library to categories, tags and custom taxonomies.
7
+ Version: 0.9.6
8
  Author: Michael Fields, Ben Huson
9
  Author URI: https://github.com/benhuson
10
  License: GNU General Public License v2 or later
40
  * @alter 0.7.4
41
  */
42
  function taxonomy_image_plugin_version() {
43
+ return '0.9.6';
44
  }
45
 
46