Custom Contact Forms - Version 6.1.2

Version Description

  • Force JSON url to obey current protocol
  • Enqueue scripts earlier
Download this release

Release Info

Developer tlovett1
Plugin Icon 128x128 Custom Contact Forms
Version 6.1.2
Comparing to
See all releases

Code changes from version 6.1.1 to 6.1.2

classes/class-ccf-custom-contact-forms.php CHANGED
@@ -88,6 +88,8 @@ class CCF_Custom_Contact_Forms {
88
  */
89
  public function manually_load_api() {
90
  if ( ! class_exists( 'WP_JSON_Server' ) ) {
 
 
91
  require( dirname( __FILE__ ) . '/../vendor/wp-api/wp-api/plugin.php' );
92
 
93
  add_action( 'wp_json_server_before_serve', array( $this, 'api_init' ) );
88
  */
89
  public function manually_load_api() {
90
  if ( ! class_exists( 'WP_JSON_Server' ) ) {
91
+ add_filter( 'json_url', 'set_url_scheme' );
92
+
93
  require( dirname( __FILE__ ) . '/../vendor/wp-api/wp-api/plugin.php' );
94
 
95
  add_action( 'wp_json_server_before_serve', array( $this, 'api_init' ) );
classes/class-ccf-form-cpt.php CHANGED
@@ -18,7 +18,7 @@ class CCF_Form_CPT {
18
  add_action( 'init', array( $this, 'setup_cpt' ) );
19
  add_filter( 'manage_edit-ccf_form_columns', array( $this, 'filter_columns' ) ) ;
20
  add_action( 'manage_ccf_form_posts_custom_column', array( $this, 'action_columns' ), 10, 2 );
21
- add_action( 'admin_enqueue_scripts', array( $this, 'action_admin_enqueue_scripts' ), 11 );
22
  add_action( 'edit_form_after_title', array( $this, 'action_edit_form_after_title' ) );
23
  add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ) );
24
  add_filter( 'post_row_actions', array( $this, 'filter_post_row_actions' ), 10, 2 );
18
  add_action( 'init', array( $this, 'setup_cpt' ) );
19
  add_filter( 'manage_edit-ccf_form_columns', array( $this, 'filter_columns' ) ) ;
20
  add_action( 'manage_ccf_form_posts_custom_column', array( $this, 'action_columns' ), 10, 2 );
21
+ add_action( 'admin_enqueue_scripts', array( $this, 'action_admin_enqueue_scripts' ), 9 );
22
  add_action( 'edit_form_after_title', array( $this, 'action_edit_form_after_title' ) );
23
  add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ) );
24
  add_filter( 'post_row_actions', array( $this, 'filter_post_row_actions' ), 10, 2 );
classes/class-ccf-form-handler.php CHANGED
@@ -563,6 +563,13 @@ class CCF_Form_Handler {
563
  <?php
564
  }
565
 
 
 
 
 
 
 
 
566
  $message .= ob_get_clean();
567
 
568
  $headers = array( 'MIME-Version: 1.0', 'Content-type: text/html; charset=iso-8859-1' );
563
  <?php
564
  }
565
 
566
+ ?>
567
+ <div>
568
+ <?php esc_html_e( 'Form submitted from:', 'custom-contact-forms' ); ?>:
569
+ <?php echo esc_url( untrailingslashit( site_url() ) . $_SERVER['REQUEST_URI'] ); ?>
570
+ </div>
571
+ <?php
572
+
573
  $message .= ob_get_clean();
574
 
575
  $headers = array( 'MIME-Version: 1.0', 'Content-type: text/html; charset=iso-8859-1' );
classes/class-ccf-form-manager.php CHANGED
@@ -16,7 +16,7 @@ class CCF_Form_Manager {
16
  public function setup() {
17
  add_action( 'media_buttons', array( $this, 'action_media_buttons' ) );
18
  add_action( 'admin_footer', array( $this, 'print_templates' ) );
19
- add_action( 'admin_enqueue_scripts' , array( $this, 'action_admin_enqueue_scripts_css' ), 11 );
20
  add_filter( 'mce_css', array( $this, 'filter_mce_css' ) );
21
  }
22
 
16
  public function setup() {
17
  add_action( 'media_buttons', array( $this, 'action_media_buttons' ) );
18
  add_action( 'admin_footer', array( $this, 'print_templates' ) );
19
+ add_action( 'admin_enqueue_scripts' , array( $this, 'action_admin_enqueue_scripts_css' ), 9 );
20
  add_filter( 'mce_css', array( $this, 'filter_mce_css' ) );
21
  }
22
 
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: 6.1.1
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: 6.1.2
8
  * Author URI: http://www.taylorlovett.com
9
  */
10
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.taylorlovett.com
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.1
7
- Stable tag: 6.1.1
8
 
9
  Build beautiful custom forms the WordPress way. View live previews of your forms while you build them.
10
 
@@ -33,6 +33,10 @@ For questions, feature requests, and support concerning the Custom Contact Forms
33
 
34
  = Changelog ==
35
 
 
 
 
 
36
  = 6.1.1 =
37
  * Make sure to check for existence of legacy table before trying to read from it.
38
 
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.1
7
+ Stable tag: 6.1.2
8
 
9
  Build beautiful custom forms the WordPress way. View live previews of your forms while you build them.
10
 
33
 
34
  = Changelog ==
35
 
36
+ = 6.1.2 =
37
+ * Force JSON url to obey current protocol
38
+ * Enqueue scripts earlier
39
+
40
  = 6.1.1 =
41
  * Make sure to check for existence of legacy table before trying to read from it.
42