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

  • Resolved mrmadhat



    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 the following 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); // true
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Issue displaying banner on taxonomy pages’ is closed to new replies.