Plugin Directory

Changeset 3348569


Ignore:
Timestamp:
08/22/2025 10:25:17 AM (8 months ago)
Author:
cookieopt2024
Message:

fix: version 1.0.7

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

Legend:

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

    r3347352 r3348569  
    204204        if ($data_cookie['action'] == 1) {
    205205            return;
    206         }
    207 
    208         $condition_status = (bool)($banner['conditional']['status'] ?? false);
    209         $rules_show = $banner['conditional']['rules']['show'] ?? [];
    210         $rules_hide = $banner['conditional']['rules']['hide'] ?? [];
    211 
    212         $anyMatch = function (array $rules): bool {
    213             foreach ($rules as $rule) {
    214                 if ($this->CookiePermissionService->checkParam($rule)) {
    215                     return true;
     206        } else {
     207            $condition_status = (bool)($banner['conditional']['status'] ?? false);
     208            $rules_show = $banner['conditional']['rules']['show'] ?? [];
     209            $rules_hide = $banner['conditional']['rules']['hide'] ?? [];
     210
     211            $anyMatch = function (array $rules): bool {
     212                foreach ($rules as $rule) {
     213                    if ($this->CookiePermissionService->checkParam($rule)) {
     214                        return true;
     215                    }
    216216                }
    217             }
    218             return false;
    219         };
    220 
    221         if (!$condition_status) {
    222             $this->render_banner($banner);
    223             return;
    224         }
    225 
    226         if (!empty($rules_hide) && $anyMatch($rules_hide)) {
    227             return;
    228         }
    229 
    230         if (empty($rules_show) || $anyMatch($rules_show)) {
    231             $this->render_banner($banner);
    232             return;
     217                return false;
     218            };
     219
     220            if (!$condition_status) {
     221                $this->render_banner($banner);
     222                return;
     223            }
     224
     225            if (!empty($rules_hide) && $anyMatch($rules_hide)) {
     226                return;
     227            }
     228
     229            if (empty($rules_show) || $anyMatch($rules_show)) {
     230                $this->render_banner($banner);
     231                return;
     232            }
    233233        }
    234234        return;
  • cookie-optimizer/tags/1.0.7/constants.php

    r3347352 r3348569  
    22
    33// Plugin version and mode
    4 define('VERSION', '1.0.6');
     4define('VERSION', '1.0.7');
    55
    66// Plugin directory details
  • cookie-optimizer/tags/1.0.7/cookie-opt.php

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

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

    r3347352 r3348569  
    1919 *
    2020 * @link       https://cookieoptimizer.net
    21  * @since      1.0.6
     21 * @since      1.0.7
    2222 *
    2323 * @package    Cookie Optimizer
  • cookie-optimizer/trunk/app/Includes/CookieOptBanner.php

    r3347352 r3348569  
    204204        if ($data_cookie['action'] == 1) {
    205205            return;
    206         }
    207 
    208         $condition_status = (bool)($banner['conditional']['status'] ?? false);
    209         $rules_show = $banner['conditional']['rules']['show'] ?? [];
    210         $rules_hide = $banner['conditional']['rules']['hide'] ?? [];
    211 
    212         $anyMatch = function (array $rules): bool {
    213             foreach ($rules as $rule) {
    214                 if ($this->CookiePermissionService->checkParam($rule)) {
    215                     return true;
     206        } else {
     207            $condition_status = (bool)($banner['conditional']['status'] ?? false);
     208            $rules_show = $banner['conditional']['rules']['show'] ?? [];
     209            $rules_hide = $banner['conditional']['rules']['hide'] ?? [];
     210
     211            $anyMatch = function (array $rules): bool {
     212                foreach ($rules as $rule) {
     213                    if ($this->CookiePermissionService->checkParam($rule)) {
     214                        return true;
     215                    }
    216216                }
    217             }
    218             return false;
    219         };
    220 
    221         if (!$condition_status) {
    222             $this->render_banner($banner);
    223             return;
    224         }
    225 
    226         if (!empty($rules_hide) && $anyMatch($rules_hide)) {
    227             return;
    228         }
    229 
    230         if (empty($rules_show) || $anyMatch($rules_show)) {
    231             $this->render_banner($banner);
    232             return;
     217                return false;
     218            };
     219
     220            if (!$condition_status) {
     221                $this->render_banner($banner);
     222                return;
     223            }
     224
     225            if (!empty($rules_hide) && $anyMatch($rules_hide)) {
     226                return;
     227            }
     228
     229            if (empty($rules_show) || $anyMatch($rules_show)) {
     230                $this->render_banner($banner);
     231                return;
     232            }
    233233        }
    234234        return;
  • cookie-optimizer/trunk/constants.php

    r3347352 r3348569  
    22
    33// Plugin version and mode
    4 define('VERSION', '1.0.6');
     4define('VERSION', '1.0.7');
    55
    66// Plugin directory details
  • cookie-optimizer/trunk/cookie-opt.php

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

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

    r3347352 r3348569  
    1919 *
    2020 * @link       https://cookieoptimizer.net
    21  * @since      1.0.6
     21 * @since      1.0.7
    2222 *
    2323 * @package    Cookie Optimizer
Note: See TracChangeset for help on using the changeset viewer.