Changeset 3772069 for linguise/trunk/src/synchronization.php
- Timestamp:
- 10/29/2026 04:38:34 AM (37 hours ago)
- File:
-
- 1 edited
-
linguise/trunk/src/synchronization.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
linguise/trunk/src/synchronization.php
r3710389 r3772069 58 58 * Converts the params coming from the Linguise API to the format understood by WordPress options. 59 59 * 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. 61 62 * 62 63 * @return array The converted params as an associative array. 63 64 */ 64 public function convertparamsToWPOptions($params, $current _dynamic_translations= null)65 public function convertparamsToWPOptions($params, $current = null) 65 66 { 66 67 $options = [ 67 68 'default_language' => $params['language'], 68 69 'enabled_languages' => $params['allowed_languages'], 69 'dynamic_translations' => PublicKeyRepair::normalizeDynamicTranslations($current _dynamic_translations),70 'dynamic_translations' => PublicKeyRepair::normalizeDynamicTranslations($current), 70 71 ]; 71 72
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)