Changeset 3488817
- Timestamp:
- 03/23/2026 10:14:36 AM (10 days ago)
- Location:
- adscale-ai/trunk
- Files:
-
- 7 edited
-
adscale-ai.php (modified) (3 diffs)
-
changelog.txt (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
src/Handlers/Status.php (modified) (1 diff)
-
src/Handlers/WooHandlers.php (modified) (1 diff)
-
src/Helpers/Helper.php (modified) (1 diff)
-
src/ServiceApi/ServiceApiBase.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
adscale-ai/trunk/adscale-ai.php
r3483168 r3488817 8 8 * Plugin URI: https://www.adscale.com/integration/#woocommerce 9 9 * Description: AdScale plugin allows you to automate Ecommerce advertising across all channels and drive more sales to your store. Easily create, manage & optimize ads on one platform. 10 * Version: 2.2.1 710 * Version: 2.2.18 11 11 * Author: AdScale LTD 12 12 * Author URI: https://www.adscale.com … … 14 14 * Requires at least: 6.2 15 15 * Requires PHP: 7.4 16 * Tested up to: 6.9. 316 * Tested up to: 6.9.4 17 17 * WC requires at least: 8.0 18 * WC tested up to: 10. 5.318 * WC tested up to: 10.6.1 19 19 * License: GPL-2.0+ 20 20 * License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 23 23 defined( 'ABSPATH' ) || exit; // Exit if accessed directly. 24 24 use AdScale\App; 25 define( 'ADSCALE_INTERNAL_MODULE_VERSION', 'v2026031 5-M' );25 define( 'ADSCALE_INTERNAL_MODULE_VERSION', 'v20260316-M' ); 26 26 define( 'ADSCALE_PLUGIN_DIR', __DIR__ ); 27 27 define( 'ADSCALE_PLUGIN_FILE', __FILE__ ); -
adscale-ai/trunk/changelog.txt
r3482917 r3488817 1 1 *** AdScale AI Changelog *** 2 3 2026-03-16 - version 2.1.18 4 * Fix: improve helper sanitization, cookie handling, and safe external redirects for Woo QIT compliance. 2 5 3 6 2026-03-11 - version 2.1.17 -
adscale-ai/trunk/readme.txt
r3482917 r3488817 3 3 Tags: woocommerce, google ads, facebook ads, ecommerce, advertising 4 4 Requires at least: 6.2 5 Tested up to: 6.9. 35 Tested up to: 6.9.4 6 6 Requires PHP: 7.4 7 Stable tag: 2.2.1 77 Stable tag: 2.2.18 8 8 License: GPL-2.0+ 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 42 42 43 43 * WordPress 5.0 or greater 44 * PHP version 7. 0or greater44 * PHP version 7.4 or greater 45 45 * WooCommerce 3.9 or greater -
adscale-ai/trunk/src/Handlers/Status.php
r3482917 r3488817 432 432 $woo_docs_url = 'https://woocommerce.github.io/woocommerce-rest-api-docs/#authentication-over-https'; 433 433 434 if ( function_exists( 'apache_get_modules' ) && strpos( $ _SERVER['SERVER_SOFTWARE'], 'Apache' ) !== false ) {434 if ( function_exists( 'apache_get_modules' ) && strpos( $server_software, 'Apache' ) !== false ) { 435 435 $apache_modules = apache_get_modules() ?: []; // Ensure it's an array 436 436 $mod_auth_basic_debug = in_array( 'mod_auth_basic', $apache_modules, true ); -
adscale-ai/trunk/src/Handlers/WooHandlers.php
r3414062 r3488817 275 275 276 276 public static function wc_checkout_page_front(){ 277 $value=Helper::get_opt_in_ action()=='on'?1:0;277 $value=Helper::get_opt_in_checked()=='on'?1:0; 278 278 279 279 echo '<div id="adscale__optin">'; -
adscale-ai/trunk/src/Helpers/Helper.php
r3482917 r3488817 1060 1060 public static function get_cookie($name, $default = '', $sanitize_callback = null) 1061 1061 { 1062 if (!isset($_COOKIE[$name])) { 1062 $cookie_name = is_string($name) ? sanitize_key($name) : ''; 1063 if ('' === $cookie_name) { 1063 1064 return $default; 1064 1065 } 1065 1066 1066 // Ensure string and unslash from PHP/WP runtime 1067 $value = is_string($_COOKIE[$name]) ? wp_unslash($_COOKIE[$name]) : ''; 1067 $raw_cookie = filter_input(INPUT_COOKIE, $cookie_name, FILTER_UNSAFE_RAW, FILTER_NULL_ON_FAILURE); 1068 if (null === $raw_cookie || false === $raw_cookie) { 1069 return $default; 1070 } 1071 1072 // Ensure string and unslash from PHP/WP runtime. 1073 $value = is_string($raw_cookie) ? wp_unslash($raw_cookie) : ''; 1068 1074 1069 1075 // If our setter used rawurlencode, decode here (safe if not encoded) -
adscale-ai/trunk/src/ServiceApi/ServiceApiBase.php
r3482917 r3488817 176 176 ]; 177 177 if ( defined( 'E_STRICT' ) ) { 178 $errorType[ E_STRICT ] = 'Runtime Notice'; // handle at shutdown178 $errorType[ 2048 ] = 'Runtime Notice'; // E_STRICT legacy value 179 179 } 180 180 … … 211 211 ); 212 212 } 213 if ( defined( 'E_STRICT' ) && $errno === E_STRICT) {213 if ( defined( 'E_STRICT' ) && 2048 === (int) $errno ) { 214 214 Logger::log( $errorMessage, 'PHP Notice > ', 'ServiceApi_' . self::getCalledClassShortName(), 0, 1 ); 215 215 }
Note: See TracChangeset
for help on using the changeset viewer.