Support » Plugin: Simple Banner » Issue displaying banner on taxonomy pages

  • Resolved mrmadhat

    (@mrmadhat)


    Hi,

    There is an error in simple-banner.php which prevents the banner displaying on taxonomy pages.

    When on a taxonomy page and no pages have been disabled the result is this:

    
    get_option('disabled_pages_array') // ''
    get_the_ID() // false
    
    

    resulting in unexpected behaviour:

    
    $disabled_pages_array = explode(',', get_option('disabled_pages_array')); // ['']
    $disabled_on_current_page = 
    !empty($disabled_pages_array) && in_array(get_the_ID(), $disabled_pages_array);
    
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.