Plugin Directory

Changeset 3409340


Ignore:
Timestamp:
12/03/2025 10:57:14 AM (11 days ago)
Author:
sbouey
Message:

Update to version 1.3.67

Location:
falang
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • falang/tags/1.3.67/README.txt

    r3362585 r3409340  
    91913. Add languages
    92924. Set the default language (main language of your site)
    93 5. Add the  Language Switcher to your site
     935. Add the  Language Switcher to your site (by shortcode or menu) [Documentation for language switcher](https://www.faboba.com/en/wordpress/falang-for-wordpress/documentation/119-how-to-configure-language-switcher.html)
    94946. Translate your post / pages / menus etc. to the other languages
    9595
     
    110110
    111111== Changelog ==
     112
     113* 1.3.68 (2025/12/03)
     114* fix meta translation with serialised object
    112115
    113116* 1.3.67 (2025/09/16)
  • falang/tags/1.3.67/admin/class-falang-admin.php

    r3362585 r3409340  
    717717     * @update 1.3.66 fix object injection in unserialize
    718718     * @update 1.3.67 fix regression on ACF or meta non serialized save
     719     * @update 1.3.68 fix meta translation with serialised object / remove preg_match
    719720     */
    720721    public function save_translation_post()
     
    755756            $meta_key = Falang_Core::get_prefix($language) . $post_meta;
    756757            if (strlen($field_value) > 0) {
     758                //the $field value need to be stripslades and trim before the is_serialize
     759                $field_value = stripslashes(trim($field_value));
    757760                if (is_serialized($field_value)){
    758761                    // Safe to unserialize // https://heera.it/the-dangers-of-phps-unserialize-and-how-to-stay-safe
    759                     if (preg_match('/^[\w:;,.{}()=]+$/', $field_value)) {
    760                         $field_value = unserialize(stripslashes(trim($field_value)), ['allowed_classes' => false]);
    761                     }
     762                    //1.3.68 remove the preg_match was not working on mediaport
     763                    //if (preg_match('/^[\w:;,.{}()=]+$/', $field_value)) {
     764                        $field_value = unserialize($field_value, ['allowed_classes' => false]);
     765                    //}
    762766                }
    763767                //update for standard meta or safe value
  • falang/tags/1.3.67/falang.php

    r3362585 r3409340  
    99 * Plugin URI:        www.faboba.com/falangw/
    1010 * Description:       Adds multilingual capability to WordPress (Lite version)
    11  * Version:           1.3.67
     11 * Version:           1.3.68
    1212 * Author:            Faboba
    1313 * Author URI:        www.faboba.com
     
    1717 * Domain Path:       /languages
    1818 *
    19  * Copyright 2020-2024 Faboba
     19 * Copyright 2020-2025 Faboba
    2020 *
    2121 * This program is free software: you can redistribute it and/or modify
     
    5050 * Currently plugin version.
    5151 */
    52 define( 'FALANG_VERSION', '1.3.67' );
     52define( 'FALANG_VERSION', '1.3.68' );
    5353define( 'FALANG_MIN_WP_VERSION', '4.7' );
    5454define( 'FALANG_FILE', __FILE__ ); // this file
  • falang/trunk/README.txt

    r3362585 r3409340  
    91913. Add languages
    92924. Set the default language (main language of your site)
    93 5. Add the  Language Switcher to your site
     935. Add the  Language Switcher to your site (by shortcode or menu) [Documentation for language switcher](https://www.faboba.com/en/wordpress/falang-for-wordpress/documentation/119-how-to-configure-language-switcher.html)
    94946. Translate your post / pages / menus etc. to the other languages
    9595
     
    110110
    111111== Changelog ==
     112
     113* 1.3.68 (2025/12/03)
     114* fix meta translation with serialised object
    112115
    113116* 1.3.67 (2025/09/16)
  • falang/trunk/admin/class-falang-admin.php

    r3362585 r3409340  
    717717     * @update 1.3.66 fix object injection in unserialize
    718718     * @update 1.3.67 fix regression on ACF or meta non serialized save
     719     * @update 1.3.68 fix meta translation with serialised object / remove preg_match
    719720     */
    720721    public function save_translation_post()
     
    755756            $meta_key = Falang_Core::get_prefix($language) . $post_meta;
    756757            if (strlen($field_value) > 0) {
     758                //the $field value need to be stripslades and trim before the is_serialize
     759                $field_value = stripslashes(trim($field_value));
    757760                if (is_serialized($field_value)){
    758761                    // Safe to unserialize // https://heera.it/the-dangers-of-phps-unserialize-and-how-to-stay-safe
    759                     if (preg_match('/^[\w:;,.{}()=]+$/', $field_value)) {
    760                         $field_value = unserialize(stripslashes(trim($field_value)), ['allowed_classes' => false]);
    761                     }
     762                    //1.3.68 remove the preg_match was not working on mediaport
     763                    //if (preg_match('/^[\w:;,.{}()=]+$/', $field_value)) {
     764                        $field_value = unserialize($field_value, ['allowed_classes' => false]);
     765                    //}
    762766                }
    763767                //update for standard meta or safe value
  • falang/trunk/falang.php

    r3362585 r3409340  
    99 * Plugin URI:        www.faboba.com/falangw/
    1010 * Description:       Adds multilingual capability to WordPress (Lite version)
    11  * Version:           1.3.67
     11 * Version:           1.3.68
    1212 * Author:            Faboba
    1313 * Author URI:        www.faboba.com
     
    1717 * Domain Path:       /languages
    1818 *
    19  * Copyright 2020-2024 Faboba
     19 * Copyright 2020-2025 Faboba
    2020 *
    2121 * This program is free software: you can redistribute it and/or modify
     
    5050 * Currently plugin version.
    5151 */
    52 define( 'FALANG_VERSION', '1.3.67' );
     52define( 'FALANG_VERSION', '1.3.68' );
    5353define( 'FALANG_MIN_WP_VERSION', '4.7' );
    5454define( 'FALANG_FILE', __FILE__ ); // this file
Note: See TracChangeset for help on using the changeset viewer.