Changeset 3379190
- Timestamp:
- 10/16/2025 03:16:37 AM (6 months ago)
- Location:
- linguise
- Files:
-
- 14 edited
- 1 copied
-
tags/2.1.75 (copied) (copied from linguise/trunk)
-
tags/2.1.75/linguise.php (modified) (1 diff)
-
tags/2.1.75/readme.txt (modified) (2 diffs)
-
tags/2.1.75/src/Helper.php (modified) (1 diff)
-
tags/2.1.75/src/constants.php (modified) (1 diff)
-
tags/2.1.75/src/frontend/redirector.php (modified) (2 diffs)
-
tags/2.1.75/src/thirdparty/wc/woocommerce.php (modified) (2 diffs)
-
tags/2.1.75/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/linguise.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/Helper.php (modified) (1 diff)
-
trunk/src/constants.php (modified) (1 diff)
-
trunk/src/frontend/redirector.php (modified) (2 diffs)
-
trunk/src/thirdparty/wc/woocommerce.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
linguise/tags/2.1.75/linguise.php
r3377801 r3379190 5 5 * Plugin URI: https://www.linguise.com/ 6 6 * Description: Linguise translation plugin 7 * Version:2.1.7 47 * Version:2.1.75 8 8 * Text Domain: linguise 9 9 * Domain Path: /languages -
linguise/tags/2.1.75/readme.txt
r3377801 r3379190 4 4 Requires at least: 4.0 5 5 Tested up to: 6.8 6 Stable tag:2.1.7 46 Stable tag:2.1.75 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 104 104 105 105 == Changelog == 106 = 2.1.75 = 107 - Fix: WooCommerce Issue: checkout process error 108 106 109 = 2.1.74 = 107 110 - Feature: AI Translation support -
linguise/tags/2.1.75/src/Helper.php
r3366846 r3379190 380 380 return preg_match('/\s/', $str) > 0; 381 381 } 382 383 384 /** 385 * Create a new URL based on the parsed_url output 386 * 387 * Code taken from Linguise Script Core Helper 388 * 389 * @param array $parsed_url The parsed URL 390 * @param boolean $encoded Should we encode the URL or not. 391 * 392 * @return string 393 */ 394 public static function buildUrl($parsed_url, $encoded = \false) 395 { 396 $final_url = ''; 397 if (empty($parsed_url['scheme'])) { 398 $final_url .= '//'; 399 } else { 400 $final_url .= $parsed_url['scheme'] . '://'; 401 } 402 403 if (!empty($parsed_url['user'])) { 404 $final_url .= $parsed_url['user']; 405 if (!empty($parsed_url['pass'])) { 406 $final_url .= ':' . $parsed_url['pass']; 407 } 408 $final_url .= '@'; 409 } 410 411 $final_url .= empty($parsed_url['host']) ? '' : $parsed_url['host']; 412 413 if (!empty($parsed_url['port'])) { 414 $final_url .= ':' . $parsed_url['port']; 415 } 416 417 if (!empty($parsed_url['path'])) { 418 if ($encoded) { 419 $explode_path = array_map('rawurlencode', explode('/', $parsed_url['path'])); 420 $final_url .= implode('/', $explode_path); 421 } else { 422 $final_url .= $parsed_url['path']; 423 } 424 } 425 426 if (!empty($parsed_url['query'])) { 427 $final_url .= '?' . $parsed_url['query']; 428 } 429 430 if (!empty($parsed_url['fragment'])) { 431 $final_url .= '#' . $parsed_url['fragment']; 432 } 433 434 return $final_url; 435 } 382 436 } -
linguise/tags/2.1.75/src/constants.php
r3377801 r3379190 1 1 <?php 2 2 if (!defined('LINGUISE_SCRIPT_TRANSLATION_VERSION')) { 3 define('LINGUISE_SCRIPT_TRANSLATION_VERSION', 'wordpress_plugin/2.1.7 4');3 define('LINGUISE_SCRIPT_TRANSLATION_VERSION', 'wordpress_plugin/2.1.75'); 4 4 } 5 5 6 6 if (!defined('LINGUISE_VERSION')) { 7 define('LINGUISE_VERSION', '2.1.7 4');7 define('LINGUISE_VERSION', '2.1.75'); 8 8 } -
linguise/tags/2.1.75/src/frontend/redirector.php
r3350018 r3379190 4 4 5 5 use Linguise\Vendor\Linguise\Script\Core\Database; 6 use Linguise\Vendor\Linguise\Script\Core\Helper;7 6 use Linguise\WordPress\Helper as WPHelper; 8 7 … … 212 211 } 213 212 214 $final_url = Helper::buildUrl($parsed_url);213 $final_url = WPHelper::buildUrl($parsed_url); 215 214 $final_url = preg_replace('#(?<!:)//+#', '/', $final_url); 216 215 setcookie(static::$cookie_name, '1', time() + 60); -
linguise/tags/2.1.75/src/thirdparty/wc/woocommerce.php
r3325315 r3379190 3 3 namespace Linguise\WordPress\Integrations; 4 4 5 use Linguise\Vendor\Linguise\Script\Core\Helper;6 use Linguise\WordPress\FragmentHandler;7 5 use Linguise\WordPress\Helper as WPHelper; 8 6 … … 288 286 289 287 $url['path'] = '/' . $url_path; 290 $result = Helper::buildUrl($url, $site_url, $language);288 $result = WPHelper::buildUrl($url, $site_url, $language); 291 289 return $result; 292 290 } -
linguise/tags/2.1.75/vendor/composer/installed.php
r3377801 r3379190 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' d185a2f920545a4711493818abc3e90ab6e81f72',6 'reference' => 'b6b8eee0c339ae1716f9660867305e5032da50ac', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 32 32 'pretty_version' => 'dev-master', 33 33 'version' => 'dev-master', 34 'reference' => ' d185a2f920545a4711493818abc3e90ab6e81f72',34 'reference' => 'b6b8eee0c339ae1716f9660867305e5032da50ac', 35 35 'type' => 'library', 36 36 'install_path' => __DIR__ . '/../../', -
linguise/trunk/linguise.php
r3377801 r3379190 5 5 * Plugin URI: https://www.linguise.com/ 6 6 * Description: Linguise translation plugin 7 * Version:2.1.7 47 * Version:2.1.75 8 8 * Text Domain: linguise 9 9 * Domain Path: /languages -
linguise/trunk/readme.txt
r3377801 r3379190 4 4 Requires at least: 4.0 5 5 Tested up to: 6.8 6 Stable tag:2.1.7 46 Stable tag:2.1.75 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 104 104 105 105 == Changelog == 106 = 2.1.75 = 107 - Fix: WooCommerce Issue: checkout process error 108 106 109 = 2.1.74 = 107 110 - Feature: AI Translation support -
linguise/trunk/src/Helper.php
r3366846 r3379190 380 380 return preg_match('/\s/', $str) > 0; 381 381 } 382 383 384 /** 385 * Create a new URL based on the parsed_url output 386 * 387 * Code taken from Linguise Script Core Helper 388 * 389 * @param array $parsed_url The parsed URL 390 * @param boolean $encoded Should we encode the URL or not. 391 * 392 * @return string 393 */ 394 public static function buildUrl($parsed_url, $encoded = \false) 395 { 396 $final_url = ''; 397 if (empty($parsed_url['scheme'])) { 398 $final_url .= '//'; 399 } else { 400 $final_url .= $parsed_url['scheme'] . '://'; 401 } 402 403 if (!empty($parsed_url['user'])) { 404 $final_url .= $parsed_url['user']; 405 if (!empty($parsed_url['pass'])) { 406 $final_url .= ':' . $parsed_url['pass']; 407 } 408 $final_url .= '@'; 409 } 410 411 $final_url .= empty($parsed_url['host']) ? '' : $parsed_url['host']; 412 413 if (!empty($parsed_url['port'])) { 414 $final_url .= ':' . $parsed_url['port']; 415 } 416 417 if (!empty($parsed_url['path'])) { 418 if ($encoded) { 419 $explode_path = array_map('rawurlencode', explode('/', $parsed_url['path'])); 420 $final_url .= implode('/', $explode_path); 421 } else { 422 $final_url .= $parsed_url['path']; 423 } 424 } 425 426 if (!empty($parsed_url['query'])) { 427 $final_url .= '?' . $parsed_url['query']; 428 } 429 430 if (!empty($parsed_url['fragment'])) { 431 $final_url .= '#' . $parsed_url['fragment']; 432 } 433 434 return $final_url; 435 } 382 436 } -
linguise/trunk/src/constants.php
r3377801 r3379190 1 1 <?php 2 2 if (!defined('LINGUISE_SCRIPT_TRANSLATION_VERSION')) { 3 define('LINGUISE_SCRIPT_TRANSLATION_VERSION', 'wordpress_plugin/2.1.7 4');3 define('LINGUISE_SCRIPT_TRANSLATION_VERSION', 'wordpress_plugin/2.1.75'); 4 4 } 5 5 6 6 if (!defined('LINGUISE_VERSION')) { 7 define('LINGUISE_VERSION', '2.1.7 4');7 define('LINGUISE_VERSION', '2.1.75'); 8 8 } -
linguise/trunk/src/frontend/redirector.php
r3350018 r3379190 4 4 5 5 use Linguise\Vendor\Linguise\Script\Core\Database; 6 use Linguise\Vendor\Linguise\Script\Core\Helper;7 6 use Linguise\WordPress\Helper as WPHelper; 8 7 … … 212 211 } 213 212 214 $final_url = Helper::buildUrl($parsed_url);213 $final_url = WPHelper::buildUrl($parsed_url); 215 214 $final_url = preg_replace('#(?<!:)//+#', '/', $final_url); 216 215 setcookie(static::$cookie_name, '1', time() + 60); -
linguise/trunk/src/thirdparty/wc/woocommerce.php
r3325315 r3379190 3 3 namespace Linguise\WordPress\Integrations; 4 4 5 use Linguise\Vendor\Linguise\Script\Core\Helper;6 use Linguise\WordPress\FragmentHandler;7 5 use Linguise\WordPress\Helper as WPHelper; 8 6 … … 288 286 289 287 $url['path'] = '/' . $url_path; 290 $result = Helper::buildUrl($url, $site_url, $language);288 $result = WPHelper::buildUrl($url, $site_url, $language); 291 289 return $result; 292 290 } -
linguise/trunk/vendor/composer/installed.php
r3377801 r3379190 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' d185a2f920545a4711493818abc3e90ab6e81f72',6 'reference' => 'b6b8eee0c339ae1716f9660867305e5032da50ac', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 32 32 'pretty_version' => 'dev-master', 33 33 'version' => 'dev-master', 34 'reference' => ' d185a2f920545a4711493818abc3e90ab6e81f72',34 'reference' => 'b6b8eee0c339ae1716f9660867305e5032da50ac', 35 35 'type' => 'library', 36 36 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.