Plugin Directory


Ignore:
Timestamp:
10/29/2026 04:38:34 AM (37 hours ago)
Author:
linguise
Message:

Updating to version 2.2.74

File:
1 edited

Legend:

Unmodified
Added
Removed
  • linguise/trunk/src/synchronization.php

    r3710389 r3772069  
    5858     * Converts the params coming from the Linguise API to the format understood by WordPress options.
    5959     *
    60      * @param array $params The params coming from the Linguise API as an associative array.
     60     * @param array $params  The params coming from the Linguise API as an associative array.
     61     * @param array $current The current dynamic translations as an associative array.
    6162     *
    6263     * @return array The converted params as an associative array.
    6364     */
    64     public function convertparamsToWPOptions($params, $current_dynamic_translations = null)
     65    public function convertparamsToWPOptions($params, $current = null)
    6566    {
    6667        $options = [
    6768            'default_language' => $params['language'],
    6869            'enabled_languages' => $params['allowed_languages'],
    69             'dynamic_translations' => PublicKeyRepair::normalizeDynamicTranslations($current_dynamic_translations),
     70            'dynamic_translations' => PublicKeyRepair::normalizeDynamicTranslations($current),
    7071        ];
    7172
Note: See TracChangeset for help on using the changeset viewer.