Plugin Directory

Changeset 3351020


Ignore:
Timestamp:
08/27/2025 09:16:18 AM (7 months ago)
Author:
cookieopt2024
Message:

version 1.0.11

Location:
cookie-optimizer
Files:
13 deleted
5 edited
47 copied

Legend:

Unmodified
Added
Removed
  • cookie-optimizer/tags/1.0.11/app/Includes/CookieOptBanner.php

    r3350761 r3351020  
    2929                add_action('wp_enqueue_scripts', [$this, 'register_enqueue_script']);
    3030                add_action('send_headers', [$this, 'set_cookie']);
     31                add_action('template_redirect', [$this, 'handle_template_redirect']);
    3132                add_action('shutdown', [$this, 'my_banner_in_content'], 300);
    3233            }
     
    193194    public function my_banner_in_content()
    194195    {
     196        if ( empty($GLOBALS['is_front_end_html']) ) {
     197            return;
     198        }
     199
    195200        cookie_log_current_state(current_filter());
    196201        if ($this->is_banner_display == true) {
     
    256261    }
    257262
     263    public function handle_template_redirect(){
     264        if ( is_feed() || is_robots() || is_embed() || is_customize_preview() ) {
     265            return;
     266        }
     267        $GLOBALS['is_front_end_html'] = true;
     268    }
     269
    258270    private function render_banner($data)
    259271    {
  • cookie-optimizer/tags/1.0.11/constants.php

    r3350761 r3351020  
    22
    33// Plugin version and mode
    4 define('VERSION', '1.0.10');
     4define('VERSION', '1.0.11');
    55
    66// Plugin directory details
  • cookie-optimizer/tags/1.0.11/cookie-opt.php

    r3350761 r3351020  
    1212 * Plugin URI: https://manage.medipartner.jp
    1313 * Description: Cookieをユーザーに見える化し、各法律にする準拠バナー同意ソリューション
    14  * Version: 1.0.10
     14 * Version: 1.0.11
    1515 * Requires at least: 5.3
    1616 * Requires PHP: 7.3
     
    5151 *
    5252 * @class CookieOpt
    53  * @version 1.0.10
     53 * @version 1.0.11
    5454 */
    5555class CookieOpt
     
    7676     */
    7777    public $defaults = [
    78         'version' => '1.0.10',
     78        'version' => '1.0.11',
    7979    ];
    8080
  • cookie-optimizer/tags/1.0.11/readme.txt

    r3350761 r3351020  
    55Requires PHP: 7.3
    66Tested up to: 6.7   
    7 Stable tag: 1.0.10
     7Stable tag: 1.0.11
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    6565== Changelog ==
    6666
    67 = 1.0.10 =
     67= 1.0.11 =
    6868Initial release
    6969
  • cookie-optimizer/tags/1.0.11/uninstall.php

    r3350761 r3351020  
    1919 *
    2020 * @link       https://cookieoptimizer.net
    21  * @since      1.0.10
     21 * @since      1.0.11
    2222 *
    2323 * @package    Cookie Optimizer
  • cookie-optimizer/trunk/app/Includes/CookieOptBanner.php

    r3350761 r3351020  
    2929                add_action('wp_enqueue_scripts', [$this, 'register_enqueue_script']);
    3030                add_action('send_headers', [$this, 'set_cookie']);
     31                add_action('template_redirect', [$this, 'handle_template_redirect']);
    3132                add_action('shutdown', [$this, 'my_banner_in_content'], 300);
    3233            }
     
    193194    public function my_banner_in_content()
    194195    {
     196        if ( empty($GLOBALS['is_front_end_html']) ) {
     197            return;
     198        }
     199
    195200        cookie_log_current_state(current_filter());
    196201        if ($this->is_banner_display == true) {
     
    256261    }
    257262
     263    public function handle_template_redirect(){
     264        if ( is_feed() || is_robots() || is_embed() || is_customize_preview() ) {
     265            return;
     266        }
     267        $GLOBALS['is_front_end_html'] = true;
     268    }
     269
    258270    private function render_banner($data)
    259271    {
  • cookie-optimizer/trunk/constants.php

    r3350761 r3351020  
    22
    33// Plugin version and mode
    4 define('VERSION', '1.0.10');
     4define('VERSION', '1.0.11');
    55
    66// Plugin directory details
  • cookie-optimizer/trunk/cookie-opt.php

    r3350761 r3351020  
    1212 * Plugin URI: https://manage.medipartner.jp
    1313 * Description: Cookieをユーザーに見える化し、各法律にする準拠バナー同意ソリューション
    14  * Version: 1.0.10
     14 * Version: 1.0.11
    1515 * Requires at least: 5.3
    1616 * Requires PHP: 7.3
     
    5151 *
    5252 * @class CookieOpt
    53  * @version 1.0.10
     53 * @version 1.0.11
    5454 */
    5555class CookieOpt
     
    7676     */
    7777    public $defaults = [
    78         'version' => '1.0.10',
     78        'version' => '1.0.11',
    7979    ];
    8080
  • cookie-optimizer/trunk/readme.txt

    r3350761 r3351020  
    55Requires PHP: 7.3
    66Tested up to: 6.7   
    7 Stable tag: 1.0.10
     7Stable tag: 1.0.11
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    6565== Changelog ==
    6666
    67 = 1.0.10 =
     67= 1.0.11 =
    6868Initial release
    6969
  • cookie-optimizer/trunk/uninstall.php

    r3350761 r3351020  
    1919 *
    2020 * @link       https://cookieoptimizer.net
    21  * @since      1.0.10
     21 * @since      1.0.11
    2222 *
    2323 * @package    Cookie Optimizer
Note: See TracChangeset for help on using the changeset viewer.