Plugin Directory

Changeset 3485773


Ignore:
Timestamp:
03/18/2026 02:26:11 PM (2 weeks ago)
Author:
sbouey
Message:

Update to version 1.4.1

Location:
falang
Files:
8 edited
1 copied

Legend:

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

    r3447171 r3485773  
    66Tested up to: 6.9
    77Requires PHP: 5.6
    8 Stable tag: 1.4.0
     8Stable tag: 1.4.1
    99License: GPLv3 or later
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    113113== Changelog ==
    114114
     115* 1.4.1 (2026/03/18)
     116* display hreflang only for cpt not set to a specific langauge
     117* fix dynamic warning
     118
    115119* 1.4.0 (2026/01/26)
    116120* add ChatGPT translation service (Pro)
     
    122126* fix meta translation with serialised object
    123127
    124 * 1.3.67 (2025/09/16)
    125 * fix WooCommerce – Dashboard menu active class missing (Alexandre Froger fix)
    126 * fix CF7 bug with _locale filtring since CF7 6.1.1
    127 * fix RankMath title translation for archive page
    128 * fix meta (ACF) translation (regression from 1.3.66 version)
    129 * fix for woocommerce Checkout link (jurifc)
    130 
    131 * 1.3.66 (2025/09/01)
    132 * fix theme editor save with slug
    133 * fix bug with permalink since woocommerce 10.0.0
    134 * fix object injection vulnerability's
    135 
    136 * 1.3.65 (2025/08/02)
    137 * fix _load_textdomain_just_in_time (thanks to Alexandre Froger)
    138 * fix yoast title translation
    139 * fix yoast category description (change in wpml-config.xml necessary)
    140 * fix yoast graph slug write 2 times
    141 * load custom wpml-config.xml in falang root directory
    142 
    143 * 1.3.64 (2025/07/01)
    144 * fix yoast title translation (no variable in the title)
    145 
    146 * 1.3.63 (2025/05/14)
    147 * fix error on WC checkout
    148 
    149 * 1.3.62 (2025/05/12)
    150 * add yootheme live search support
    151 * fix yootheme search bug
    152 * add WC term&condition translation when it's embeded in the page
    153 * fix security (CSRF)
    154 * WordPress 6.8 compatible
    155 
    156 * 1.3.61 (2025/04/14)
    157 * shortcode falang switcher fix the echo
    158 * add password protection support for translated content
    159 * fix yoast canonical on page
    160 * fix title display
    161 * support for My Agile Privacy
    162 * fix deprecated Falang\Core\Language::$term_order
    163 * add falang_languages_list (like pll_languages_list)
    164 * fix duplicator pro popup bug with Falang [data-tooltip]
    165 * add WPML ICL_LANGUAGE_CODE and ICL_LANGUAGE_NAME define (fix bug with some theme)
    166 
    167 * 1.3.60 (2025/03/05)
    168 * update term translation in the list status/content on save modal
    169 * fix term translation service translation
    170 * fix string translation service translation
    171 * fix options translation service translation
    172 * notice are now displayed every 2 weeks not 1
    173 * add english/french canadian
    174 * temporary fix load string translation put back in plugin plugins_loaded filter
    175 * fix new icon copy on acf translation
    176 
    177 * 1.3.59 (2025/01/30)
    178 * fix bug in falangw shortcode use to display the switcher (thanks to Frank Sundgaard Nielsen)
    179 * fix copy/translate button with supported builder (elementor/divi...)
    180 * fix suoni language translation with translate service
    181 * fix deepl translation on elementor text widget
    182 * fix hreflang when they are overrided by the filter falang_hreflang
    183 * remove font awesome / use fontello font only
    184 * fix load_textdomain warning
    185 
    186 * 1.3.58 (2025/01/15)
    187 * change message when the post translation is done in a builder
    188 * don't display original content with extra builder (fix element pack bug with simple form)
    189 * add during install the Navigation Menu item option : _menu_item_url checked
    190 
    191128== Known issues ==
    192129* The WooCommerce attribute slug doesn't have to be translated
  • falang/tags/1.4.1/changelog.txt

    r3222941 r3485773  
     1* 1.3.67 (2025/09/16)
     2* fix WooCommerce – Dashboard menu active class missing (Alexandre Froger fix)
     3* fix CF7 bug with _locale filtring since CF7 6.1.1
     4* fix RankMath title translation for archive page
     5* fix meta (ACF) translation (regression from 1.3.66 version)
     6* fix for woocommerce Checkout link (jurifc)
     7
     8* 1.3.66 (2025/09/01)
     9* fix theme editor save with slug
     10* fix bug with permalink since woocommerce 10.0.0
     11* fix object injection vulnerability's
     12
     13* 1.3.65 (2025/08/02)
     14* fix _load_textdomain_just_in_time (thanks to Alexandre Froger)
     15* fix yoast title translation
     16* fix yoast category description (change in wpml-config.xml necessary)
     17* fix yoast graph slug write 2 times
     18* load custom wpml-config.xml in falang root directory
     19
     20* 1.3.64 (2025/07/01)
     21* fix yoast title translation (no variable in the title)
     22
     23* 1.3.63 (2025/05/14)
     24* fix error on WC checkout
     25
     26* 1.3.62 (2025/05/12)
     27* add yootheme live search support
     28* fix yootheme search bug
     29* add WC term&condition translation when it's embeded in the page
     30* fix security (CSRF)
     31* WordPress 6.8 compatible
     32
     33* 1.3.61 (2025/04/14)
     34* shortcode falang switcher fix the echo
     35* add password protection support for translated content
     36* fix yoast canonical on page
     37* fix title display
     38* support for My Agile Privacy
     39* fix deprecated Falang\Core\Language::$term_order
     40* add falang_languages_list (like pll_languages_list)
     41* fix duplicator pro popup bug with Falang [data-tooltip]
     42* add WPML ICL_LANGUAGE_CODE and ICL_LANGUAGE_NAME define (fix bug with some theme)
     43
     44* 1.3.60 (2025/03/05)
     45* update term translation in the list status/content on save modal
     46* fix term translation service translation
     47* fix string translation service translation
     48* fix options translation service translation
     49* notice are now displayed every 2 weeks not 1
     50* add english/french canadian
     51* temporary fix load string translation put back in plugin plugins_loaded filter
     52* fix new icon copy on acf translation
     53
     54* 1.3.59 (2025/01/30)
     55* fix bug in falangw shortcode use to display the switcher (thanks to Frank Sundgaard Nielsen)
     56* fix copy/translate button with supported builder (elementor/divi...)
     57* fix suoni language translation with translate service
     58* fix deepl translation on elementor text widget
     59* fix hreflang when they are overrided by the filter falang_hreflang
     60* remove font awesome / use fontello font only
     61* fix load_textdomain warning
     62
     63* 1.3.58 (2025/01/15)
     64* change message when the post translation is done in a builder
     65* don't display original content with extra builder (fix element pack bug with simple form)
     66* add during install the Navigation Menu item option : _menu_item_url checked
     67
    168* 1.3.57 (2024/11/14)
    269* fix Yoast title template translation (fix by Stamatios Aronis)
  • falang/tags/1.4.1/falang.php

    r3447171 r3485773  
    99 * Plugin URI:        www.faboba.com/falangw/
    1010 * Description:       Adds multilingual capability to WordPress (Lite version)
    11  * Version:           1.4.0
     11 * Version:           1.4.1
    1212 * Author:            Faboba
    1313 * Author URI:        www.faboba.com
     
    5050 * Currently plugin version.
    5151 */
    52 define( 'FALANG_VERSION', '1.4.0' );
     52define( 'FALANG_VERSION', '1.4.1' );
    5353define( 'FALANG_MIN_WP_VERSION', '4.7' );
    5454define( 'FALANG_FILE', __FILE__ ); // this file
  • falang/tags/1.4.1/public/class-falang-public.php

    r3362585 r3485773  
    18781878     * @from 1.3.7
    18791879     * @update 1.3.59 fix the return not used for the falang_hreflang filter
     1880     * @update 1.4.1 display hreflang only for cpt not set to a specific langauge
    18801881     */
    18811882    public function print_hreflang() {
     1883        global $post;
    18821884
    18831885        $hreflangs = array();
    18841886        $languages = $this->model->get_languages_list();
    18851887
     1888        //get post language
     1889        $post_locale = get_post_meta( $post->ID, '_locale', true );
     1890
    18861891        foreach ($languages as $language) {
    1887             //hreflang code ISO 639-1 en-GB , fr-FR and not like wordpress locale en_GB,fr_FR
    1888             $lang =  str_replace('_','-',$language->locale);
    1889             $hreflangs[ $lang ] = $this->get_translated_url($language);
     1892            //add hreflang only if post not set to specific locale
     1893            //or it's the locale of the page.
     1894            if (empty($post_locale) || ($post_locale == $language->locale)){
     1895                //hreflang code ISO 639-1 en-GB , fr-FR and not like wordpress locale en_GB,fr_FR
     1896                $lang =  str_replace('_','-',$language->locale);
     1897                $hreflangs[ $lang ] = $this->get_translated_url($language);
     1898            }
    18901899        }
    18911900
  • falang/trunk/README.txt

    r3447171 r3485773  
    66Tested up to: 6.9
    77Requires PHP: 5.6
    8 Stable tag: 1.4.0
     8Stable tag: 1.4.1
    99License: GPLv3 or later
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    113113== Changelog ==
    114114
     115* 1.4.1 (2026/03/18)
     116* display hreflang only for cpt not set to a specific langauge
     117* fix dynamic warning
     118
    115119* 1.4.0 (2026/01/26)
    116120* add ChatGPT translation service (Pro)
     
    122126* fix meta translation with serialised object
    123127
    124 * 1.3.67 (2025/09/16)
    125 * fix WooCommerce – Dashboard menu active class missing (Alexandre Froger fix)
    126 * fix CF7 bug with _locale filtring since CF7 6.1.1
    127 * fix RankMath title translation for archive page
    128 * fix meta (ACF) translation (regression from 1.3.66 version)
    129 * fix for woocommerce Checkout link (jurifc)
    130 
    131 * 1.3.66 (2025/09/01)
    132 * fix theme editor save with slug
    133 * fix bug with permalink since woocommerce 10.0.0
    134 * fix object injection vulnerability's
    135 
    136 * 1.3.65 (2025/08/02)
    137 * fix _load_textdomain_just_in_time (thanks to Alexandre Froger)
    138 * fix yoast title translation
    139 * fix yoast category description (change in wpml-config.xml necessary)
    140 * fix yoast graph slug write 2 times
    141 * load custom wpml-config.xml in falang root directory
    142 
    143 * 1.3.64 (2025/07/01)
    144 * fix yoast title translation (no variable in the title)
    145 
    146 * 1.3.63 (2025/05/14)
    147 * fix error on WC checkout
    148 
    149 * 1.3.62 (2025/05/12)
    150 * add yootheme live search support
    151 * fix yootheme search bug
    152 * add WC term&condition translation when it's embeded in the page
    153 * fix security (CSRF)
    154 * WordPress 6.8 compatible
    155 
    156 * 1.3.61 (2025/04/14)
    157 * shortcode falang switcher fix the echo
    158 * add password protection support for translated content
    159 * fix yoast canonical on page
    160 * fix title display
    161 * support for My Agile Privacy
    162 * fix deprecated Falang\Core\Language::$term_order
    163 * add falang_languages_list (like pll_languages_list)
    164 * fix duplicator pro popup bug with Falang [data-tooltip]
    165 * add WPML ICL_LANGUAGE_CODE and ICL_LANGUAGE_NAME define (fix bug with some theme)
    166 
    167 * 1.3.60 (2025/03/05)
    168 * update term translation in the list status/content on save modal
    169 * fix term translation service translation
    170 * fix string translation service translation
    171 * fix options translation service translation
    172 * notice are now displayed every 2 weeks not 1
    173 * add english/french canadian
    174 * temporary fix load string translation put back in plugin plugins_loaded filter
    175 * fix new icon copy on acf translation
    176 
    177 * 1.3.59 (2025/01/30)
    178 * fix bug in falangw shortcode use to display the switcher (thanks to Frank Sundgaard Nielsen)
    179 * fix copy/translate button with supported builder (elementor/divi...)
    180 * fix suoni language translation with translate service
    181 * fix deepl translation on elementor text widget
    182 * fix hreflang when they are overrided by the filter falang_hreflang
    183 * remove font awesome / use fontello font only
    184 * fix load_textdomain warning
    185 
    186 * 1.3.58 (2025/01/15)
    187 * change message when the post translation is done in a builder
    188 * don't display original content with extra builder (fix element pack bug with simple form)
    189 * add during install the Navigation Menu item option : _menu_item_url checked
    190 
    191128== Known issues ==
    192129* The WooCommerce attribute slug doesn't have to be translated
  • falang/trunk/changelog.txt

    r3222941 r3485773  
     1* 1.3.67 (2025/09/16)
     2* fix WooCommerce – Dashboard menu active class missing (Alexandre Froger fix)
     3* fix CF7 bug with _locale filtring since CF7 6.1.1
     4* fix RankMath title translation for archive page
     5* fix meta (ACF) translation (regression from 1.3.66 version)
     6* fix for woocommerce Checkout link (jurifc)
     7
     8* 1.3.66 (2025/09/01)
     9* fix theme editor save with slug
     10* fix bug with permalink since woocommerce 10.0.0
     11* fix object injection vulnerability's
     12
     13* 1.3.65 (2025/08/02)
     14* fix _load_textdomain_just_in_time (thanks to Alexandre Froger)
     15* fix yoast title translation
     16* fix yoast category description (change in wpml-config.xml necessary)
     17* fix yoast graph slug write 2 times
     18* load custom wpml-config.xml in falang root directory
     19
     20* 1.3.64 (2025/07/01)
     21* fix yoast title translation (no variable in the title)
     22
     23* 1.3.63 (2025/05/14)
     24* fix error on WC checkout
     25
     26* 1.3.62 (2025/05/12)
     27* add yootheme live search support
     28* fix yootheme search bug
     29* add WC term&condition translation when it's embeded in the page
     30* fix security (CSRF)
     31* WordPress 6.8 compatible
     32
     33* 1.3.61 (2025/04/14)
     34* shortcode falang switcher fix the echo
     35* add password protection support for translated content
     36* fix yoast canonical on page
     37* fix title display
     38* support for My Agile Privacy
     39* fix deprecated Falang\Core\Language::$term_order
     40* add falang_languages_list (like pll_languages_list)
     41* fix duplicator pro popup bug with Falang [data-tooltip]
     42* add WPML ICL_LANGUAGE_CODE and ICL_LANGUAGE_NAME define (fix bug with some theme)
     43
     44* 1.3.60 (2025/03/05)
     45* update term translation in the list status/content on save modal
     46* fix term translation service translation
     47* fix string translation service translation
     48* fix options translation service translation
     49* notice are now displayed every 2 weeks not 1
     50* add english/french canadian
     51* temporary fix load string translation put back in plugin plugins_loaded filter
     52* fix new icon copy on acf translation
     53
     54* 1.3.59 (2025/01/30)
     55* fix bug in falangw shortcode use to display the switcher (thanks to Frank Sundgaard Nielsen)
     56* fix copy/translate button with supported builder (elementor/divi...)
     57* fix suoni language translation with translate service
     58* fix deepl translation on elementor text widget
     59* fix hreflang when they are overrided by the filter falang_hreflang
     60* remove font awesome / use fontello font only
     61* fix load_textdomain warning
     62
     63* 1.3.58 (2025/01/15)
     64* change message when the post translation is done in a builder
     65* don't display original content with extra builder (fix element pack bug with simple form)
     66* add during install the Navigation Menu item option : _menu_item_url checked
     67
    168* 1.3.57 (2024/11/14)
    269* fix Yoast title template translation (fix by Stamatios Aronis)
  • falang/trunk/falang.php

    r3447171 r3485773  
    99 * Plugin URI:        www.faboba.com/falangw/
    1010 * Description:       Adds multilingual capability to WordPress (Lite version)
    11  * Version:           1.4.0
     11 * Version:           1.4.1
    1212 * Author:            Faboba
    1313 * Author URI:        www.faboba.com
     
    5050 * Currently plugin version.
    5151 */
    52 define( 'FALANG_VERSION', '1.4.0' );
     52define( 'FALANG_VERSION', '1.4.1' );
    5353define( 'FALANG_MIN_WP_VERSION', '4.7' );
    5454define( 'FALANG_FILE', __FILE__ ); // this file
  • falang/trunk/public/class-falang-public.php

    r3362585 r3485773  
    18781878     * @from 1.3.7
    18791879     * @update 1.3.59 fix the return not used for the falang_hreflang filter
     1880     * @update 1.4.1 display hreflang only for cpt not set to a specific langauge
    18801881     */
    18811882    public function print_hreflang() {
     1883        global $post;
    18821884
    18831885        $hreflangs = array();
    18841886        $languages = $this->model->get_languages_list();
    18851887
     1888        //get post language
     1889        $post_locale = get_post_meta( $post->ID, '_locale', true );
     1890
    18861891        foreach ($languages as $language) {
    1887             //hreflang code ISO 639-1 en-GB , fr-FR and not like wordpress locale en_GB,fr_FR
    1888             $lang =  str_replace('_','-',$language->locale);
    1889             $hreflangs[ $lang ] = $this->get_translated_url($language);
     1892            //add hreflang only if post not set to specific locale
     1893            //or it's the locale of the page.
     1894            if (empty($post_locale) || ($post_locale == $language->locale)){
     1895                //hreflang code ISO 639-1 en-GB , fr-FR and not like wordpress locale en_GB,fr_FR
     1896                $lang =  str_replace('_','-',$language->locale);
     1897                $hreflangs[ $lang ] = $this->get_translated_url($language);
     1898            }
    18901899        }
    18911900
Note: See TracChangeset for help on using the changeset viewer.