Bug: "Expires on…" always appears above Price List

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #54323
    Xpark Media
    Keymaster

    After upgrading to version 3.1.7, when we display the price list using the shortcode [image-store list=11], the text “Expires 10/31/2012” appears above the price list.

    However, we have no expiration dates set on galleries, etc… anywhere.

    After a little investigating, this hack resolves the issue:

    Change /image-store/_inc/store.php line 1476 from:

    if ( $this->gal->post_expire != ‘0000-00-00 00:00:00’ )

    to:

    if ( isset($this->gal->post_expire) && $this->gal->post_expire != ‘0000-00-00 00:00:00’ )
    Because that value is empty and never evaluates to the date format in the if check here.

    Hope this is helpful and a fix makes it into the plugin 🙂

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