Plugin Directory

Changeset 3359747


Ignore:
Timestamp:
09/11/2025 10:26:37 AM (7 months ago)
Author:
smartling
Message:

Update to v 4.3.4

Location:
smartling-connector/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • smartling-connector/trunk/inc/Smartling/Extensions/Acf/AcfDynamicSupport.php

    r3338937 r3359747  
    576576        $key = implode(FieldsFilterHelper::ARRAY_DIVIDER, array_reverse($parts));
    577577        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]);
    581579            if (in_array($ruleId, $this->rules['localize'], true)) {
    582580                return ReplacerFactory::REPLACER_RELATED;
     
    595593            $this->run();
    596594        }
    597         $type = $this->definitions[$key]['type'] ?? '';
     595        $type = $this->definitions[$this->getRuleId($key)]['type'] ?? '';
    598596
    599597        return match ($type) {
     
    709707        return in_array('acf_option_page', $this->getPostTypes(), true);
    710708    }
     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    }
    711717}
  • smartling-connector/trunk/readme.txt

    r3352527 r3359747  
    55Tested up to: 6.6.2
    66Requires PHP: 8.0
    7 Stable tag: 4.3.3
     7Stable tag: 4.3.4
    88License: GPLv2 or later
    99
     
    6363
    6464== Changelog ==
     65= 4.3.4 =
     66* Fixed issue where related ACF content was not detected when using the upload widget
     67
    6568= 4.3.3 =
    6669* Fixed issue where Elementor related submissions were processed partially
  • smartling-connector/trunk/smartling-connector.php

    r3352527 r3359747  
    1212 * Plugin URI:        https://www.smartling.com/products/automate/integrations/wordpress/
    1313 * Description:       Integrate your WordPress site with Smartling to upload your content and download translations.
    14  * Version:           4.3.3
     14 * Version:           4.3.4
    1515 * Author:            Smartling
    1616 * Author URI:        https://www.smartling.com
Note: See TracChangeset for help on using the changeset viewer.