Plugin Directory

Changeset 3443066


Ignore:
Timestamp:
01/20/2026 09:01:26 AM (2 months ago)
Author:
gfazioli
Message:

🐛 fix(frontend): Prevent banner rendering on private or password‑protected posts

  • Add guard to skip rendering for non‑public posts
  • Update Tested up to version in readme
  • Minor formatting cleanup in provider and config files
File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-bannerize-pro/trunk/config/plugin.php

    r3127458 r3443066  
    22
    33return [
    4     /*
     4  /*
    55    |--------------------------------------------------------------------------
    66    | Logging Configuration
     
    1515    */
    1616
    17     'log' => 'errorlog',
     17  'log' => 'errorlog',
    1818
    19     'log_level' => 'debug',
     19  'log_level' => 'debug',
    2020
    21     /*
     21  /*
    2222    |--------------------------------------------------------------------------
    2323    | Screen options
     
    2828    */
    2929
    30     'screen_options' => [],
     30  'screen_options' => [],
    3131
    32     /*
     32  /*
    3333    |--------------------------------------------------------------------------
    3434    | Custom Post Types
     
    3939    */
    4040
    41     'custom_post_types' => ['\WPBannerize\CustomPostTypes\WPBannerizeCustomPostType'],
     41  'custom_post_types' => ['\WPBannerize\CustomPostTypes\WPBannerizeCustomPostType'],
    4242
    43     /*
     43  /*
    4444    |--------------------------------------------------------------------------
    4545    | Custom Taxonomies
     
    5050    */
    5151
    52     'custom_taxonomy_types' => ['\WPBannerize\CustomTaxonomyTypes\WPBannerizeCustomTaxonomyType'],
     52  'custom_taxonomy_types' => ['\WPBannerize\CustomTaxonomyTypes\WPBannerizeCustomTaxonomyType'],
    5353
    54 
    55     /*
     54  /*
    5655    |--------------------------------------------------------------------------
    5756    | Shortcodes
     
    6261    */
    6362
    64     'shortcodes' => ['\WPBannerize\Shortcodes\WPBannerizeShortcode'],
     63  'shortcodes' => ['\WPBannerize\Shortcodes\WPBannerizeShortcode'],
    6564
    66     /*
     65  /*
    6766    |--------------------------------------------------------------------------
    6867    | Widgets
     
    7372    */
    7473
    75     'widgets' => ['\WPBannerize\Widgets\WPBannerizeWidget'],
     74  'widgets' => ['\WPBannerize\Widgets\WPBannerizeWidget'],
    7675
    77 
    78     /*
     76  /*
    7977    |--------------------------------------------------------------------------
    8078    | Ajax
     
    8583    */
    8684
    87     'ajax' => [
    88         '\WPBannerize\Ajax\WPBannerizeAjax',
    89         '\WPBannerize\Ajax\WPBannerizeAnalyticsAjaxServiceProvider',
    90         '\WPBannerize\Ajax\OptionsAjaxServiceProvider',
    91         '\WPBannerize\Ajax\GeoAjaxServiceProvider',
    92     ],
     85  'ajax' => [
     86    '\WPBannerize\Ajax\WPBannerizeAjax',
     87    '\WPBannerize\Ajax\WPBannerizeAnalyticsAjaxServiceProvider',
     88    '\WPBannerize\Ajax\OptionsAjaxServiceProvider',
     89    '\WPBannerize\Ajax\GeoAjaxServiceProvider',
     90  ],
    9391
    94     /*
     92  /*
    9593    |--------------------------------------------------------------------------
    9694    | Autoloader Service Providers
     
    103101    */
    104102
    105     'providers' => [
    106         '\WPBannerize\Providers\WPBannerizeServiceProvider',
    107         '\WPBannerize\Providers\WPBannerizeFrontendServiceProvider'
    108     ]
    109 
     103  'providers' => [
     104    '\WPBannerize\Providers\WPBannerizeServiceProvider',
     105    '\WPBannerize\Providers\WPBannerizeFrontendServiceProvider',
     106  ],
    110107];
Note: See TracChangeset for help on using the changeset viewer.