Custom Contact Forms - Version 4.5.3.1

Version Description

  • modules/widgets/custom-contact-forms-dashboard.php - Array shift bug fix
Download this release

Release Info

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

Code changes from version 4.5.3.0 to 4.5.3.1

custom-contact-forms.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Custom Contact Forms
4
  Plugin URI: http://taylorlovett.com/wordpress-plugins
5
  Description: Guaranteed to be 1000X more customizable and intuitive than Fast Secure Contact Forms or Contact Form 7. Customize every aspect of your forms without any knowledge of CSS: borders, padding, sizes, colors. Ton's of great features. Required fields, form submissions saved to database, captchas, tooltip popovers, unlimited fields/forms/form styles, import/export, use a custom thank you page or built-in popover with a custom success message set for each form.
6
- Version: 4.5.3.0
7
  Author: Taylor Lovett
8
  Author URI: http://www.taylorlovett.com
9
  */
3
  Plugin Name: Custom Contact Forms
4
  Plugin URI: http://taylorlovett.com/wordpress-plugins
5
  Description: Guaranteed to be 1000X more customizable and intuitive than Fast Secure Contact Forms or Contact Form 7. Customize every aspect of your forms without any knowledge of CSS: borders, padding, sizes, colors. Ton's of great features. Required fields, form submissions saved to database, captchas, tooltip popovers, unlimited fields/forms/form styles, import/export, use a custom thank you page or built-in popover with a custom success message set for each form.
6
+ Version: 4.5.3.1
7
  Author: Taylor Lovett
8
  Author URI: http://www.taylorlovett.com
9
  */
modules/widget/custom-contact-forms-dashboard.php CHANGED
@@ -19,7 +19,10 @@ if (!class_exists('CustomContactFormsDashboard')) {
19
  $widget_perms = $perms['dashboard_access'];
20
  global $current_user;
21
  $user_roles = $current_user->roles;
22
- $user_role = array_shift($user_roles);
 
 
 
23
 
24
  if ($widget_perms == 2) {
25
  if ($user_role != "Administrator") return false;
19
  $widget_perms = $perms['dashboard_access'];
20
  global $current_user;
21
  $user_roles = $current_user->roles;
22
+ if (is_array($user_roles)) {
23
+ $user_role = @array_shift($user_roles);
24
+ } else
25
+ $user_role = "";
26
 
27
  if ($widget_perms == 2) {
28
  if ($user_role != "Administrator") return false;
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
5
  Requires at least: 2.8.1
6
  Tested up to: 3.1.2
7
- Stable tag: 4.5.3.0
8
 
9
  Gauranteed to be the most customizable and intuitive contact form plugin for Wordpress.
10
 
@@ -134,6 +134,9 @@ Visit http://www.taylorlovett.com/wordpress-plugins for screenshots. Right now a
134
 
135
  == Changelog ==
136
 
 
 
 
137
  = 4.5.3.0 =
138
  * custom-contact-forms-admin.php - Dashboard widget security bug fixed. Now you can limit which users can see the dashboard widget. Also a quick start guide has been added.
139
  * custom-contact-forms.php - Dashboard widget security bug fixed.
4
  Tags: contact form, web form, custom contact form, custom forms, captcha form, contact fields, form mailers
5
  Requires at least: 2.8.1
6
  Tested up to: 3.1.2
7
+ Stable tag: 4.5.3.1
8
 
9
  Gauranteed to be the most customizable and intuitive contact form plugin for Wordpress.
10
 
134
 
135
  == Changelog ==
136
 
137
+ = 4.5.3.1 =
138
+ * modules/widgets/custom-contact-forms-dashboard.php - Array shift bug fix
139
+
140
  = 4.5.3.0 =
141
  * custom-contact-forms-admin.php - Dashboard widget security bug fixed. Now you can limit which users can see the dashboard widget. Also a quick start guide has been added.
142
  * custom-contact-forms.php - Dashboard widget security bug fixed.