Version Description
- Bust script/style cache
Download this release
Release Info
Developer | tlovett1 |
Plugin | Custom Contact Forms |
Version | 7.0.2 |
Comparing to | |
See all releases |
Code changes from version 7.0.1 to 7.0.2
- classes/class-ccf-form-manager.php +6 -5
- custom-contact-forms.php +1 -1
- readme.txt +4 -1
classes/class-ccf-form-manager.php
CHANGED
@@ -1520,6 +1520,7 @@ class CCF_Form_Manager {
|
|
1520 |
global $pagenow;
|
1521 |
|
1522 |
if ( 'post.php' == $pagenow || 'post-new.php' == $pagenow ) {
|
|
|
1523 |
|
1524 |
if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) {
|
1525 |
$js_manager_path = '/build/js/form-manager.js';
|
@@ -1556,13 +1557,13 @@ class CCF_Form_Manager {
|
|
1556 |
'recaptcha' => __( 'reCAPTCHA', 'custom-contact-forms' ),
|
1557 |
));
|
1558 |
|
1559 |
-
wp_register_script( 'moment', plugins_url( '/bower_components/moment/moment.js', dirname( __FILE__ ) ) );
|
1560 |
|
1561 |
if ( ! wp_script_is( 'wp-api', 'registered' ) ) {
|
1562 |
-
wp_register_script( 'wp-api', plugins_url( '/vendor/wp-api/wp-api/wp-api.js', dirname( __FILE__ ) ) );
|
1563 |
}
|
1564 |
|
1565 |
-
wp_enqueue_script( 'ccf-form-manager', plugins_url( $js_manager_path, dirname( __FILE__ ) ), array( 'json2', 'jquery', 'jquery-ui-core', 'jquery-ui-datepicker', 'underscore', 'backbone', 'jquery-ui-core', 'jquery-ui-draggable', 'jquery-ui-sortable', 'jquery-ui-droppable', 'wp-api', 'moment' ),
|
1566 |
wp_localize_script( 'ccf-form-manager', 'ccfSettings', array(
|
1567 |
'nonce' => wp_create_nonce( 'ccf_nonce' ),
|
1568 |
'downloadSubmissionsNonce' => wp_create_nonce( 'ccf_download_submissions_nonce' ),
|
@@ -1587,10 +1588,10 @@ class CCF_Form_Manager {
|
|
1587 |
'skipFields' => apply_filters( 'ccf_no_submission_display_fields', array( 'html', 'section-header', 'recaptcha' ) ),
|
1588 |
) );
|
1589 |
|
1590 |
-
wp_enqueue_style( 'ccf-form-manager', plugins_url( $css_path, dirname( __FILE__ ) ) );
|
1591 |
|
1592 |
if ( apply_filters( 'ccf_enable_tinymce_previews', true ) && 'ccf_form' !== get_post_type() ) {
|
1593 |
-
wp_enqueue_script( 'ccf-form-mce', plugins_url( $js_mce_path, dirname( __FILE__ ) ), array( 'mce-view', 'jquery', 'ccf-form-manager' ),
|
1594 |
}
|
1595 |
}
|
1596 |
}
|
1520 |
global $pagenow;
|
1521 |
|
1522 |
if ( 'post.php' == $pagenow || 'post-new.php' == $pagenow ) {
|
1523 |
+
$version = '7.0.2';
|
1524 |
|
1525 |
if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) {
|
1526 |
$js_manager_path = '/build/js/form-manager.js';
|
1557 |
'recaptcha' => __( 'reCAPTCHA', 'custom-contact-forms' ),
|
1558 |
));
|
1559 |
|
1560 |
+
wp_register_script( 'moment', plugins_url( '/bower_components/moment/moment.js', dirname( __FILE__ ) ), array(), $version );
|
1561 |
|
1562 |
if ( ! wp_script_is( 'wp-api', 'registered' ) ) {
|
1563 |
+
wp_register_script( 'wp-api', plugins_url( '/vendor/wp-api/wp-api/wp-api.js', dirname( __FILE__ ) ), array(), $version );
|
1564 |
}
|
1565 |
|
1566 |
+
wp_enqueue_script( 'ccf-form-manager', plugins_url( $js_manager_path, dirname( __FILE__ ) ), array( 'json2', 'jquery', 'jquery-ui-core', 'jquery-ui-datepicker', 'underscore', 'backbone', 'jquery-ui-core', 'jquery-ui-draggable', 'jquery-ui-sortable', 'jquery-ui-droppable', 'wp-api', 'moment' ), $version, true );
|
1567 |
wp_localize_script( 'ccf-form-manager', 'ccfSettings', array(
|
1568 |
'nonce' => wp_create_nonce( 'ccf_nonce' ),
|
1569 |
'downloadSubmissionsNonce' => wp_create_nonce( 'ccf_download_submissions_nonce' ),
|
1588 |
'skipFields' => apply_filters( 'ccf_no_submission_display_fields', array( 'html', 'section-header', 'recaptcha' ) ),
|
1589 |
) );
|
1590 |
|
1591 |
+
wp_enqueue_style( 'ccf-form-manager', plugins_url( $css_path, dirname( __FILE__ ) ), array(), $version );
|
1592 |
|
1593 |
if ( apply_filters( 'ccf_enable_tinymce_previews', true ) && 'ccf_form' !== get_post_type() ) {
|
1594 |
+
wp_enqueue_script( 'ccf-form-mce', plugins_url( $js_mce_path, dirname( __FILE__ ) ), array( 'mce-view', 'jquery', 'ccf-form-manager' ), $version, true );
|
1595 |
}
|
1596 |
}
|
1597 |
}
|
custom-contact-forms.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: http://www.taylorlovett.com
|
5 |
* Description: Build beautiful custom forms the WordPress way. View live previews of your forms while you build them.
|
6 |
* Author: Taylor Lovett
|
7 |
-
* Version: 7.0.
|
8 |
* Author URI: http://www.taylorlovett.com
|
9 |
*/
|
10 |
|
4 |
* Plugin URI: http://www.taylorlovett.com
|
5 |
* Description: Build beautiful custom forms the WordPress way. View live previews of your forms while you build them.
|
6 |
* Author: Taylor Lovett
|
7 |
+
* Version: 7.0.2
|
8 |
* Author URI: http://www.taylorlovett.com
|
9 |
*/
|
10 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: contact form, web form, custom contact form, custom forms, captcha form, contact fields, form mailers, forms
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.5
|
7 |
-
Stable tag: 7.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -37,6 +37,9 @@ For questions, feature requests, and support concerning the Custom Contact Forms
|
|
37 |
|
38 |
== Changelog ==
|
39 |
|
|
|
|
|
|
|
40 |
= 7.0.1 =
|
41 |
* Fix CORS issue
|
42 |
* Add Chinese [davidabm](https://github.com/davidabm)
|
4 |
Tags: contact form, web form, custom contact form, custom forms, captcha form, contact fields, form mailers, forms
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.5
|
7 |
+
Stable tag: 7.0.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
37 |
|
38 |
== Changelog ==
|
39 |
|
40 |
+
= 7.0.2 =
|
41 |
+
* Bust script/style cache
|
42 |
+
|
43 |
= 7.0.1 =
|
44 |
* Fix CORS issue
|
45 |
* Add Chinese [davidabm](https://github.com/davidabm)
|