Plugin Directory

Changeset 3441625


Ignore:
Timestamp:
01/17/2026 03:11:00 PM (8 weeks ago)
Author:
andreasmuench
Message:

v.1.13

Location:
multilingual-contact-form-7-with-polylang
Files:
22 added
4 edited

Legend:

Unmodified
Added
Removed
  • multilingual-contact-form-7-with-polylang/trunk/frontend/Messages_Translation.php

    r3108806 r3441625  
    6565
    6666        if (
    67             $_SERVER['REQUEST_METHOD'] !== 'POST'
     67            (empty($_SERVER['REQUEST_METHOD']) || $_SERVER['REQUEST_METHOD'] !== 'POST')
    6868            || ( empty( $_POST['_wpcf7_locale'] ) && empty( $_COOKIE['pll_language'] ) )
    6969            || empty( $mofile )
  • multilingual-contact-form-7-with-polylang/trunk/inc/Helpers.php

    r3108806 r3441625  
    164164                $lang_data = (array)$lang_term;
    165165                $lang_data['term_props']['language'] = (array)$lang_term;
     166                // unset properties to prevent Deprecation Warning:
     167                // Creation of dynamic property PLL_Language::$filter is deprecated
     168                unset($lang_data['filter']);
     169                unset($lang_data['count']);
     170                unset($lang_data['parent']);
     171                unset($lang_data['description']);
     172                unset($lang_data['taxonomy']);
     173                unset($lang_data['term_taxonomy_id']);
     174                unset($lang_data['term_order']);
    166175                $language = new \PLL_Language($lang_data);
    167176            }
  • multilingual-contact-form-7-with-polylang/trunk/plugin.php

    r3281021 r3441625  
    44 * Plugin URI:
    55 * Description: Enables translation and use of the same forms in different languages of Contact Form 7 forms with Polylang
    6  * Version: 1.0.12
     6 * Version: 1.0.13
    77 * Author: Andreas Münch
    88 * Author URI: https://andreasmuench.de
  • multilingual-contact-form-7-with-polylang/trunk/readme.txt

    r3281021 r3441625  
    44Tags: contact form 7, polylang, multilingual, translate, language
    55Requires at least: 5.7.0
    6 Tested up to: 6.8
     6Tested up to: 6.9
    77Requires PHP: 5.6
    8 Stable tag: 1.0.12
     8Stable tag: 1.0.13
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6969== Changelog ==
    7070
     71= 1.0.13 =
     72* fix PHP warnings: PHP Deprecated: Creation of dynamic property PLL_Language::$xxx is deprecated
     73* fix PHP warning: Undefined array key “REQUEST_METHOD”
     74
    7175= 1.0.12 =
    7276* fix warning notice that _load_textdomain_just_in_time was called too early
Note: See TracChangeset for help on using the changeset viewer.