Changeset 3359747
- Timestamp:
- 09/11/2025 10:26:37 AM (7 months ago)
- Location:
- smartling-connector/trunk
- Files:
-
- 3 edited
-
inc/Smartling/Extensions/Acf/AcfDynamicSupport.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
smartling-connector.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
smartling-connector/trunk/inc/Smartling/Extensions/Acf/AcfDynamicSupport.php
r3338937 r3359747 576 576 $key = implode(FieldsFilterHelper::ARRAY_DIVIDER, array_reverse($parts)); 577 577 if (array_key_exists($key, $attributes)) { 578 $matches = []; 579 preg_match_all(AcfTypeDetector::ACF_FIELD_GROUP_REGEX, $attributes[$key], $matches); 580 $ruleId = array_pop($matches[0]) ?? $attributes[$key]; 578 $ruleId = $this->getRuleId($attributes[$key]); 581 579 if (in_array($ruleId, $this->rules['localize'], true)) { 582 580 return ReplacerFactory::REPLACER_RELATED; … … 595 593 $this->run(); 596 594 } 597 $type = $this->definitions[$ key]['type'] ?? '';595 $type = $this->definitions[$this->getRuleId($key)]['type'] ?? ''; 598 596 599 597 return match ($type) { … … 709 707 return in_array('acf_option_page', $this->getPostTypes(), true); 710 708 } 709 710 public function getRuleId(string $key): string 711 { 712 $matches = []; 713 preg_match_all(AcfTypeDetector::ACF_FIELD_GROUP_REGEX, $key, $matches); 714 715 return array_pop($matches[0]) ?? $key; 716 } 711 717 } -
smartling-connector/trunk/readme.txt
r3352527 r3359747 5 5 Tested up to: 6.6.2 6 6 Requires PHP: 8.0 7 Stable tag: 4.3. 37 Stable tag: 4.3.4 8 8 License: GPLv2 or later 9 9 … … 63 63 64 64 == Changelog == 65 = 4.3.4 = 66 * Fixed issue where related ACF content was not detected when using the upload widget 67 65 68 = 4.3.3 = 66 69 * Fixed issue where Elementor related submissions were processed partially -
smartling-connector/trunk/smartling-connector.php
r3352527 r3359747 12 12 * Plugin URI: https://www.smartling.com/products/automate/integrations/wordpress/ 13 13 * Description: Integrate your WordPress site with Smartling to upload your content and download translations. 14 * Version: 4.3. 314 * Version: 4.3.4 15 15 * Author: Smartling 16 16 * Author URI: https://www.smartling.com
Note: See TracChangeset
for help on using the changeset viewer.