Support » Plugin: Amazon Associates Link Builder » BUG in merge_cached_and_non_cached_response_items

  • Simple:

    in the /cache/item_lookup_response_cache_loader.php

    there is a function called “merge_cached_and_non_cached_response_items()”

    in this function there is an array_merge().

    If the products in the shortcode are numeric (ISBN-10) and do not start with 0, the array_merge will change the key of the items array.

    This change will cause that the product with ISBN code will not be displayed because, in the same file, there is a if that will check the array key with asin in the shortcode.

    Line 106: if ( array_key_exists( $asin, $fetched_asins_responses ) )

    So, array_merge() should become $cached_response_items + $non_cached_response_items.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.