Skip to content

Commit

Permalink
v4.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
aurovrata committed Feb 22, 2021
1 parent eee2368 commit 2d4d43c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ For JavaScript helper codes, paste them in your `<theme folder>/js/<form-unique-
23. (23) You can filter mail tags, hover your mouse over the blue information icon next to each tag and click the link, this will copy the filter code to your clipboard which you can paste into your functions.php file.
== Changelog ==
= 4.8.1 =
* enabled other attributes for input elements in html text.
* fix HTML/UI form sync.
* add 'cf7sg_preserve_cf7_data_schema' filter for plugin owners to preserve CF7 data schema.
= 4.8.0 =
Expand Down
6 changes: 3 additions & 3 deletions admin/class-cf7-grid-layout-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -741,12 +741,12 @@ public function save_post($post_id, $post, $update){
$args['locale'] = isset( $_POST['wpcf7-locale'] ) ? sanitize_text_field($_POST['wpcf7-locale']) : null;
$args['form'] = '';
$allowed_tags = wp_kses_allowed_html( 'post' ); //filtered in function below.
/** @since 2.10.0 alllow custom input html*/
/** @since 4.8.1 alllow custom input html*/
$allowed_tags['input']=array( //add additional input html elements
'type'=>1,
'type'=>1,'name'=>1,'placeholder'=>1,'value'=>1,'maxlength'=>1,'minlength'=>1, //input fields.
'spellcheck'=>1,'size'=>1,'readonly'=>1,'pattern'=>1,'list'=>1, //input fields.
'class'=>1,
'id'=>1,
'value'=>1,
'data-*'=>1,
);
$allowed_tags['script']=array('type'=>1);
Expand Down
4 changes: 2 additions & 2 deletions cf7-grid-layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Plugin URI: https://wordpress.org/plugins/cf7-grid-layout/
* GitHub Plugin URI: https://github.com/aurovrata/cf7-grid-layout
* Description: Enabled responsive grid layout designs for Contact Form 7 forms.
* Version: 4.8.1rc1
* Version: 4.8.1
* Author: Aurovrata V.
* Author URI: https://profiles.wordpress.org/aurovrata
* License: GPL-2.0+
Expand All @@ -23,7 +23,7 @@
if ( ! defined( 'WPINC' ) ) {
die;
}
define( 'CF7_GRID_VERSION', '4.8.1rc1' );
define( 'CF7_GRID_VERSION', '4.8.1' );

if(! defined('WPCF7_AUTOP') ) define('WPCF7_AUTOP', false);

Expand Down

0 comments on commit 2d4d43c

Please sign in to comment.