Plugin Directory

Changeset 2750651


Ignore:
Timestamp:
07/01/2022 08:22:20 AM (4 years ago)
Author:
aumkub
Message:

1.2.3

  • แก้ไขบั๊กเล็กน้อย
Location:
pdpa-thailand/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pdpa-thailand/trunk/admin/admin.php

    r2750637 r2750651  
    516516        $settings['cookie_necessary'] = serialize($cookie_neccesary);
    517517
    518         // echo '<pre>';
    519         // print_r($_POST);
    520         // echo '</pre>';
    521         // die;
     518        // if ( isset($_POST['gg_analytic_script'] ) )
     519        //  $gg_analytic_script = 1;
     520        // else
     521        //  $gg_analytic_script = '';
    522522
    523523        // Set cookie
     
    529529            'code_next_body' => '',
    530530            'code_body_close' =>'',
    531             'gg_analytic_script' => $this->pdpa_thailand_recursive_sanitize_text_field(isset($_POST['gg_analytic_script']) ? $_POST['gg_analytic_script'] : ''),
     531            'gg_analytic_script' => $this->pdpa_thailand_recursive_sanitize_text_field(isset($_POST['gg_analytic_script']) ? $_POST['gg_analytic_script'] : array()),
    532532            'gg_analytic_id' => $this->pdpa_thailand_recursive_sanitize_text_field($_POST['gg_analytic_id']),
    533             'fb_pixel_script' => $this->pdpa_thailand_recursive_sanitize_text_field(isset($_POST['fb_pixel_script']) ? $_POST['fb_pixel_script'] : ''),
     533            'fb_pixel_script' => $this->pdpa_thailand_recursive_sanitize_text_field(isset($_POST['fb_pixel_script']) ? $_POST['fb_pixel_script'] : array()),
    534534            'fb_pixel_id' => $this->pdpa_thailand_recursive_sanitize_text_field($_POST['fb_pixel_id'])
    535535        );
     
    613613        foreach ( $array as $key => &$value ) {
    614614            if ( is_array( $value ) ) {
    615                 $value = pdpa_thailand_recursive_sanitize_text_field($value);
    616             }
    617             else {
    618                 $value = sanitize_text_field( $value );
     615                $array[$key] = $this->pdpa_thailand_recursive_sanitize_text_field($value);
    619616            }
    620617        }
  • pdpa-thailand/trunk/pdpa-thailand.php

    r2750637 r2750651  
    66 * Author: DesignilCode
    77 * Author URI: https://www.designilcode.com
    8  * Version: 1.2.2
     8 * Version: 1.2.3
    99 * Text Domain: pdpa-thailand
    1010 * Domain Path: /languages
     
    2020 * @since 1.1
    2121 */
    22 if ( ! defined( 'PDPA_THAILAND_VERSION' ) )         define( 'PDPA_THAILAND_VERSION', '1.2.2' ); // Plugin version constant
     22if ( ! defined( 'PDPA_THAILAND_VERSION' ) )         define( 'PDPA_THAILAND_VERSION', '1.2.3' ); // Plugin version constant
    2323if ( ! defined( 'PDPA_THAILAND' ) )     define( 'PDPA_THAILAND'     , trim( dirname( plugin_basename( __FILE__ ) ), '/' ) ); // Name of the plugin folder eg - 'pdpa-thailand'
    2424if ( ! defined( 'PDPA_THAILAND_DIR' ) ) define( 'PDPA_THAILAND_DIR' , plugin_dir_path( __FILE__ ) ); // Plugin directory absolute path with the trailing slash. Useful for using with includes eg - /var/www/html/wp-content/plugins/pdpa-thailand/
  • pdpa-thailand/trunk/readme.txt

    r2750637 r2750651  
    44Tags: pdpa, thai, thailand, gdpr, cookie, consent, law
    55Tested up to: 6.0
    6 Stable tag: 1.2.2
     6Stable tag: 1.2.3
    77License: GPLv2 or later
    88License URI: https://www.designilpdpa.com
     
    121121
    122122== Changelog ==
     123= 1.2.3 =
     124* แก้ไขบั๊กเล็กน้อย
     125
    123126= 1.2.2 =
    124127* ปรับ UI หลังบ้าน
Note: See TracChangeset for help on using the changeset viewer.