Custom Contact Forms - Version 6.0.1

Version Description

  • Properly flush permalinks on activation
  • Warn user if pretty permalinks is not enabled.
Download this release

Release Info

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

Code changes from version 6.0 to 6.0.1

classes/class-ccf-custom-contact-forms.php CHANGED
@@ -18,6 +18,35 @@ class CCF_Custom_Contact_Forms {
18
  add_action( 'plugins_loaded', array( $this, 'manually_load_api' ), 100 );
19
  add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );
20
  add_filter( 'plugin_row_meta', array( $this, 'filter_plugin_row_meta' ), 10, 4 );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  }
22
 
23
  /**
18
  add_action( 'plugins_loaded', array( $this, 'manually_load_api' ), 100 );
19
  add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );
20
  add_filter( 'plugin_row_meta', array( $this, 'filter_plugin_row_meta' ), 10, 4 );
21
+ add_action( 'admin_notices', array( $this, 'permalink_warning' ) );
22
+ add_action( 'admin_init', array( $this, 'flush_rewrites' ), 10000 );
23
+ }
24
+
25
+ /**
26
+ * Flush rewrites if necessary
27
+ *
28
+ * @since 6.0
29
+ */
30
+ public function flush_rewrites() {
31
+ $flush_rewrites = get_option( 'ccf_flush_rewrites' );
32
+
33
+ if ( ! empty( $flush_rewrites ) ) {
34
+ flush_rewrite_rules();
35
+
36
+ delete_option( 'ccf_flush_rewrites' );
37
+ }
38
+ }
39
+
40
+ public function permalink_warning() {
41
+ $permalink_structure = get_option( 'permalink_structure' );
42
+
43
+ if ( empty( $permalink_structure ) ) {
44
+ ?>
45
+ <div class="update-nag">
46
+ <?php printf( __( 'Custom Contact Forms will not work unless pretty permalinks (not default) are enabled. Please update your <a href="%s">permalinks settings</a>.', 'custom-contact-forms' ), esc_url( admin_url( 'options-permalink.php' ) ) ); ?>
47
+ </div>
48
+ <?php
49
+ }
50
  }
51
 
52
  /**
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.0
8
  * Author URI: http://www.taylorlovett.com
9
  */
10
 
@@ -34,3 +34,14 @@ CCF_Form_Manager::factory();
34
  CCF_Form_Renderer::factory();
35
  CCF_Field_Renderer::factory();
36
  CCF_Form_Handler::factory();
 
 
 
 
 
 
 
 
 
 
 
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.0.1
8
  * Author URI: http://www.taylorlovett.com
9
  */
10
 
34
  CCF_Form_Renderer::factory();
35
  CCF_Field_Renderer::factory();
36
  CCF_Form_Handler::factory();
37
+
38
+ /**
39
+ * Flush the rewrites at the end of init after the plugin is been activated.
40
+ *
41
+ * @since 6.0
42
+ */
43
+ function ccf_flush_rewrites() {
44
+ update_option( 'ccf_flush_rewrites', true );
45
+ }
46
+
47
+ register_activation_hook( __FILE__, 'ccf_flush_rewrites' );
languages/custom-contact-forms.mo CHANGED
Binary file
languages/custom-contact-forms.po CHANGED
@@ -5,8 +5,8 @@ msgstr ""
5
  "Project-Id-Version: Custom Contact Forms\n"
6
  "Report-Msgid-Bugs-To: https://github.com/tlovett1/editorial-access-manager/"
7
  "issues\n"
8
- "POT-Creation-Date: 2015-01-12 14:57-0500\n"
9
- "PO-Revision-Date: 2015-01-12 14:58-0500\n"
10
  "Last-Translator: Taylor Lovett <tlovett88@gmail.com>\n"
11
  "Language-Team: LANGUAGE <LL@li.org>\n"
12
  "Language: en\n"
@@ -55,6 +55,18 @@ msgstr ""
55
  msgid "Deleted post"
56
  msgstr ""
57
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  #: ../classes/class-ccf-form-cpt.php:74
59
  msgid "Form Submission Columns"
60
  msgstr ""
@@ -157,6 +169,11 @@ msgstr ""
157
  msgid "Form"
158
  msgstr ""
159
 
 
 
 
 
 
160
  #: ../classes/class-ccf-form-cpt.php:369
161
  msgid "Add New Form"
162
  msgstr ""
@@ -165,15 +182,14 @@ msgstr ""
165
  msgid "Edit Form"
166
  msgstr ""
167
 
168
- #: ../classes/class-ccf-form-cpt.php:371
169
- #: ../classes/class-ccf-form-manager.php:56
170
- msgid "New Form"
171
- msgstr ""
172
-
173
  #: ../classes/class-ccf-form-cpt.php:372
174
  msgid "Forms and Submissions"
175
  msgstr ""
176
 
 
 
 
 
177
  #: ../classes/class-ccf-form-cpt.php:374
178
  msgid "Search Forms"
179
  msgstr ""
5
  "Project-Id-Version: Custom Contact Forms\n"
6
  "Report-Msgid-Bugs-To: https://github.com/tlovett1/editorial-access-manager/"
7
  "issues\n"
8
+ "POT-Creation-Date: 2015-01-13 10:17-0500\n"
9
+ "PO-Revision-Date: 2015-01-13 10:17-0500\n"
10
  "Last-Translator: Taylor Lovett <tlovett88@gmail.com>\n"
11
  "Language-Team: LANGUAGE <LL@li.org>\n"
12
  "Language: en\n"
55
  msgid "Deleted post"
56
  msgstr ""
57
 
58
+ #: ../classes/class-ccf-custom-contact-forms.php:46
59
+ #, php-format
60
+ msgid ""
61
+ "Custom Contact Forms will not work unless pretty permalinks (not default) "
62
+ "are enabled. Please update your <a href=\"%s\">permalinks settings</a>."
63
+ msgstr ""
64
+
65
+ #: ../classes/class-ccf-custom-contact-forms.php:66
66
+ #, php-format
67
+ msgid "<a href=\"%s\">Forms and Submissions</a>"
68
+ msgstr ""
69
+
70
  #: ../classes/class-ccf-form-cpt.php:74
71
  msgid "Form Submission Columns"
72
  msgstr ""
169
  msgid "Form"
170
  msgstr ""
171
 
172
+ #: ../classes/class-ccf-form-cpt.php:368 ../classes/class-ccf-form-cpt.php:371
173
+ #: ../classes/class-ccf-form-manager.php:56
174
+ msgid "New Form"
175
+ msgstr ""
176
+
177
  #: ../classes/class-ccf-form-cpt.php:369
178
  msgid "Add New Form"
179
  msgstr ""
182
  msgid "Edit Form"
183
  msgstr ""
184
 
 
 
 
 
 
185
  #: ../classes/class-ccf-form-cpt.php:372
186
  msgid "Forms and Submissions"
187
  msgstr ""
188
 
189
+ #: ../classes/class-ccf-form-cpt.php:373
190
+ msgid "View Form"
191
+ msgstr ""
192
+
193
  #: ../classes/class-ccf-form-cpt.php:374
194
  msgid "Search Forms"
195
  msgstr ""
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.0
8
 
9
  Build beautiful custom forms the WordPress way. View live previews of your forms while you build them.
10
 
@@ -34,6 +34,10 @@ For questions, feature requests, and support concerning the Custom Contact Forms
34
 
35
  = Changelog ==
36
 
 
 
 
 
37
  = 6.0 =
38
  * Plugin completely rebuilt.
39
 
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.0.1
8
 
9
  Build beautiful custom forms the WordPress way. View live previews of your forms while you build them.
10
 
34
 
35
  = Changelog ==
36
 
37
+ = 6.0.1 =
38
+ * Properly flush permalinks on activation
39
+ * Warn user if pretty permalinks is not enabled.
40
+
41
  = 6.0 =
42
  * Plugin completely rebuilt.
43