Contact Form 7 Dynamic Text Extension - Version 1.1.0.2

Version Description

  • Updated to work with Contact Form 7 v3.7.x
Download this release

Release Info

Developer sevenspark
Plugin Icon wp plugin Contact Form 7 Dynamic Text Extension
Version 1.1.0.2
Comparing to
See all releases

Code changes from version 1.1.0.1 to 1.1.0.2

contact-form-7-dynamic-text-extension.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Contact Form 7 - Dynamic Text Extension
5
  Plugin URI: http://sevenspark.com/wordpress-plugins/contact-form-7-dynamic-text-extension
6
  Description: Provides a dynamic text field that accepts any shortcode to generate the content. Requires Contact Form 7
7
- Version: 1.1.0.1
8
  Author: Chris Mavricos, SevenSpark
9
  Author URI: http://sevenspark.com
10
  License: GPL2
@@ -55,7 +55,8 @@ add_action( 'plugins_loaded', 'wpcf7_dynamictext_init' , 20 );
55
  *************************************************************/
56
 
57
  function wpcf7_dynamictext_shortcode_handler( $tag ) {
58
- global $wpcf7_contact_form;
 
59
 
60
  if ( ! is_array( $tag ) )
61
  return '';
@@ -148,7 +149,8 @@ function wpcf7_dynamictext_shortcode_handler( $tag ) {
148
  /* Validation filter */
149
 
150
  function wpcf7_dynamictext_validation_filter( $result, $tag ) {
151
- global $wpcf7_contact_form;
 
152
 
153
  $type = $tag['type'];
154
  $name = $tag['name'];
@@ -229,7 +231,8 @@ function wpcf7_tg_pane_dynamictext( $type = 'dynamictext' ) {
229
  * DynamicHidden Shortcode
230
  *************************************************************/
231
  function wpcf7_dynamichidden_shortcode_handler( $tag ) {
232
- global $wpcf7_contact_form;
 
233
 
234
  if ( ! is_array( $tag ) )
235
  return '';
4
  Plugin Name: Contact Form 7 - Dynamic Text Extension
5
  Plugin URI: http://sevenspark.com/wordpress-plugins/contact-form-7-dynamic-text-extension
6
  Description: Provides a dynamic text field that accepts any shortcode to generate the content. Requires Contact Form 7
7
+ Version: 1.1.0.2
8
  Author: Chris Mavricos, SevenSpark
9
  Author URI: http://sevenspark.com
10
  License: GPL2
55
  *************************************************************/
56
 
57
  function wpcf7_dynamictext_shortcode_handler( $tag ) {
58
+
59
+ $wpcf7_contact_form = WPCF7_ContactForm::get_current();
60
 
61
  if ( ! is_array( $tag ) )
62
  return '';
149
  /* Validation filter */
150
 
151
  function wpcf7_dynamictext_validation_filter( $result, $tag ) {
152
+
153
+ $wpcf7_contact_form = WPCF7_ContactForm::get_current();
154
 
155
  $type = $tag['type'];
156
  $name = $tag['name'];
231
  * DynamicHidden Shortcode
232
  *************************************************************/
233
  function wpcf7_dynamichidden_shortcode_handler( $tag ) {
234
+
235
+ $wpcf7_contact_form = WPCF7_ContactForm::get_current();
236
 
237
  if ( ! is_array( $tag ) )
238
  return '';
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: sevenspark
3
  Donate link: http://bit.ly/bVogDN
4
  Tags: Contact Form 7, Contact, Contact Form, dynamic, text, input, GET, POST, title, slug
5
- Requires at least: 2.9
6
- Tested up to: 3.8
7
- Stable tag: 1.1.0.1
8
 
9
  This plugin provides 2 new tag types for the Contact Form 7 Plugin. It allows the dynamic generation of content for a text input box via any shortcode.
10
  It also offers dynamic hidden field functionality, which can be utilized to dynamically set the Email Recipient (To:) address.
@@ -189,6 +189,9 @@ None. Yet.
189
 
190
  == Changelog ==
191
 
 
 
 
192
  = 1.1.0.1 =
193
  * Removed undefined variable warning
194
 
2
  Contributors: sevenspark
3
  Donate link: http://bit.ly/bVogDN
4
  Tags: Contact Form 7, Contact, Contact Form, dynamic, text, input, GET, POST, title, slug
5
+ Requires at least: 3.8
6
+ Tested up to: 3.8.1
7
+ Stable tag: 1.1.0.2
8
 
9
  This plugin provides 2 new tag types for the Contact Form 7 Plugin. It allows the dynamic generation of content for a text input box via any shortcode.
10
  It also offers dynamic hidden field functionality, which can be utilized to dynamically set the Email Recipient (To:) address.
189
 
190
  == Changelog ==
191
 
192
+ = 1.1.0.2 =
193
+ * Updated to work with Contact Form 7 v3.7.x
194
+
195
  = 1.1.0.1 =
196
  * Removed undefined variable warning
197