WordPress.org

Ready to get started?Download WordPress

Forums

Taxonomy Images
Edge case regarding taxonomy-images-get-terms and having_images => false (1 post)

  1. brocheafoin
    Member
    Posted 1 year ago #

    When using the taxonomy-images-get-terms filter with the optional argument having_images to false, I would expect all terms in a taxonomy to be returned. I've run into a case where this doesn't work. If the plugin is activated but no image association at all has been made yet, then the filter always returns an empty array.

    I believe the following lines should be removed from the taxonomy_images_plugin_get_terms function:

    if ( empty( $assoc ) ) {
        return array();
    }

    Thanks in advance!

    http://wordpress.org/extend/plugins/taxonomy-images/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.