Form Maker by WD – user-friendly drag & drop Form Builder plugin - Version 1.7.74

Version Description

Fixed: Minor bugs

Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Form Maker by WD – user-friendly drag & drop Form Builder plugin
Version 1.7.74
Comparing to
See all releases

Code changes from version 1.7.73 to 1.7.74

Files changed (3) hide show
  1. fm_admin_class.php +2 -128
  2. form-maker.php +2 -2
  3. readme.txt +4 -1
fm_admin_class.php CHANGED
@@ -3,10 +3,7 @@
3
  class FM_Admin {
4
 
5
  public static $instance = null;
6
- public $update_path = 'http://api.web-dorado.com/v1/_id_/version';
7
- public $updates = array();
8
- public $fm_plugins = array();
9
- public $prefix = "fm_";
10
  protected $notices = null;
11
  public static function get_instance() {
12
  if ( null == self::$instance ) {
@@ -18,135 +15,12 @@ class FM_Admin {
18
 
19
  private function __construct() {
20
  $this->notices = new FM_Notices();
21
- add_action( 'admin_menu', array( $this, 'check_for_update' ), 25 );
22
  add_action( 'admin_init', array( $this, 'admin_notice_ignore' ) );
23
  add_action( 'admin_notices', array($this, 'fm_admin_notices') );
24
  }
25
 
26
- public function get_plugin_data( $name ) {
27
-
28
- $fm_plugins = array(
29
- 'form-maker/form-maker.php' => array(
30
- 'id' => 31,
31
- 'url' => 'https://web-dorado.com/products/wordpress-form.html',
32
- 'description' => 'WordPress Form Maker is a fresh and innovative form builder. This form builder is for generating various kinds of forms.',
33
- 'icon' => '',
34
- 'image' => plugins_url( 'assets/form-maker.png', __FILE__ )
35
- ),
36
- 'form-maker-export-import/fm_exp_imp.php' => array(
37
- 'id' => 66,
38
- 'url' => 'https://web-dorado.com/products/wordpress-form/add-ons/export-import.html',
39
- 'description' => 'Form Maker Export/Import WordPress plugin allows exporting and importing forms with/without submissions.',
40
- 'icon' => '',
41
- 'image' => plugins_url( 'assets/import_export.png', __FILE__ ),
42
- ),
43
- 'form-maker-mailchimp/fm_mailchimp.php' => array(
44
- 'id' => 101,
45
- 'url' => 'https://web-dorado.com/products/wordpress-form/add-ons/mailchimp.html',
46
- 'description' => 'This add-on is an integration of the Form Maker with MailChimp which allows to add contacts to your subscription lists just from submitted forms.',
47
- 'icon' => '',
48
- 'image' => plugins_url( 'assets/mailchimp.png', __FILE__ ),
49
- ),
50
- 'form-maker-reg/fm_reg.php' => array(
51
- 'id' => 103,
52
- 'url' => 'https://web-dorado.com/products/wordpress-form/add-ons/registration.html',
53
- 'description' => 'User Registration add-on integrates with Form maker forms allowing users to create accounts at your website.',
54
- 'icon' => '',
55
- 'image' => plugins_url( 'assets/reg.png', __FILE__ ),
56
- ),
57
- 'form-maker-post-generation/fm_post_generation.php' => array(
58
- 'id' => 105,
59
- 'url' => 'https://web-dorado.com/products/wordpress-form/add-ons/post-generation.html',
60
- 'description' => 'Post Generation add-on allows creating a post, page or custom post based on the submitted data.',
61
- 'icon' => '',
62
- 'image' => plugins_url( 'assets/post-generation-update.png', __FILE__ ),
63
- ),
64
- 'form-maker-conditional-emails/fm_conditional_emails.php' => array(
65
- 'id' => 109,
66
- 'url' => 'https://web-dorado.com/products/wordpress-form/add-ons/conditional-emails.html',
67
- 'description' => 'Conditional Emails add-on allows to send emails to different recipients depending on the submitted data .',
68
- 'icon' => '',
69
- 'image' => plugins_url( 'assets/conditional-emails-update.png', __FILE__ ),
70
- )
71
- );
72
-
73
- return $fm_plugins[ $name ];
74
- }
75
- public function get_remote_version( $id ) {
76
- $request = wp_remote_get( ( str_replace( '_id_', $id, $this->update_path ) ) );
77
- if ( ! is_wp_error( $request ) || wp_remote_retrieve_response_code( $request ) === 200 ) {
78
- return json_decode( $request['body'], true );
79
- }
80
-
81
- return false;
82
- }
83
-
84
-
85
- public function check_for_update() {
86
- global $menu;
87
- $fm_plugins = array();
88
- $request_ids = array();
89
-
90
- if ( ! function_exists( 'get_plugins' ) ) {
91
- require_once ABSPATH . 'wp-admin/includes/plugin.php';
92
- }
93
- $all_plugins = get_plugins();
94
-
95
- foreach ( $all_plugins as $name => $plugin ) {
96
- if ( strpos( $name, "fm_" ) !== false or $name == "form-maker/form-maker.php" ) {
97
-
98
- $data = $this->get_plugin_data( $name );
99
- if ( $data['id'] > 0 ) {
100
- $request_ids[] = $data['id'];
101
-
102
- $fm_plugins[ $data['id'] ] = $plugin;
103
- $fm_plugins[ $data['id'] ]['fm_data'] = $data;
104
- }
105
- }
106
- }
107
-
108
- $this->fm_plugins = $fm_plugins;
109
- if ( false === $updates_available = get_transient( 'fm_update_check' ) ) {
110
- if ( count( $request_ids ) > 0 ) {
111
- $updates_available = array();
112
- $remote_version = $this->get_remote_version( implode( '_', $request_ids ) );
113
- if ( isset( $remote_version['body'] ) ) {
114
- foreach ( $remote_version['body'] as $updated_plugin ) {
115
- if ( isset( $updated_plugin['version'] ) && version_compare( $fm_plugins[ $updated_plugin['id'] ]['Version'], $updated_plugin['version'], '<' ) ) {
116
- $updates_available [ $updated_plugin['id'] ] = $updated_plugin;
117
- }
118
-
119
- }
120
- }
121
- }
122
- set_transient( 'fm_update_check', $updates_available, 12 * 60 * 60 );
123
- }
124
- $this->updates = $updates_available;
125
- $updates_count = is_array( $updates_available ) ? count( $updates_available ) : 0;
126
- add_submenu_page('manage_fm', 'Updates', 'Updates' . ' ' . '<span class="update-plugins count-' . $updates_count . '" title="title"><span class="update-count">' . $updates_count . '</span></span>', 'manage_options','updates_fm', 'updates_fm');
127
-
128
- $uninstall_page = add_submenu_page('manage_fm', 'Uninstall', 'Uninstall', 'manage_options', 'uninstall_fm', 'form_maker');
129
- add_action('admin_print_styles-' . $uninstall_page, 'form_maker_styles');
130
- add_action('admin_print_scripts-' . $uninstall_page, 'form_maker_scripts');
131
-
132
- if ( $updates_count > 0 ) {
133
- foreach ( $menu as $key => $value ) {
134
-
135
- if ( $menu[ $key ][2] == 'manage_fm' || $menu[ $key ][2] == 'updates_fm' ) {
136
- $menu[ $key ][0] .= ' ' . '<span class="update-plugins count-' . $updates_count . '" title="title">
137
- <span class="update-count">' . $updates_count . '</span></span>';
138
-
139
- return;
140
- }
141
-
142
- }
143
- }
144
-
145
- }
146
 
147
- public function plugin_updated() {
148
- delete_transient( 'fm_update_check' );
149
- }
150
 
151
  function fm_admin_notices( ) {
152
  // Notices filter and run the notices function.
3
  class FM_Admin {
4
 
5
  public static $instance = null;
6
+
 
 
 
7
  protected $notices = null;
8
  public static function get_instance() {
9
  if ( null == self::$instance ) {
15
 
16
  private function __construct() {
17
  $this->notices = new FM_Notices();
18
+
19
  add_action( 'admin_init', array( $this, 'admin_notice_ignore' ) );
20
  add_action( 'admin_notices', array($this, 'fm_admin_notices') );
21
  }
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
 
 
 
24
 
25
  function fm_admin_notices( ) {
26
  // Notices filter and run the notices function.
form-maker.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Form Maker
4
  * Plugin URI: https://web-dorado.com/products/form-maker-wordpress.html
5
  * Description: This plugin is a modern and advanced tool for easy and fast creating of a WordPress Form. The backend interface is intuitive and user friendly which allows users far from scripting and programming to create WordPress Forms.
6
- * Version: 1.7.73
7
  * Author: WebDorado
8
  * Author URI: https://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -269,7 +269,7 @@ function register_fmemailverification_cpt(){
269
  // Activate plugin.
270
  function form_maker_activate() {
271
  $version = get_option("wd_form_maker_version");
272
- $new_version = '1.7.73';
273
  global $wpdb;
274
  if (!$version) {
275
  add_option("wd_form_maker_version", $new_version, '', 'no');
3
  * Plugin Name: Form Maker
4
  * Plugin URI: https://web-dorado.com/products/form-maker-wordpress.html
5
  * Description: This plugin is a modern and advanced tool for easy and fast creating of a WordPress Form. The backend interface is intuitive and user friendly which allows users far from scripting and programming to create WordPress Forms.
6
+ * Version: 1.7.74
7
  * Author: WebDorado
8
  * Author URI: https://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
269
  // Activate plugin.
270
  function form_maker_activate() {
271
  $version = get_option("wd_form_maker_version");
272
+ $new_version = '1.7.74';
273
  global $wpdb;
274
  if (!$version) {
275
  add_option("wd_form_maker_version", $new_version, '', 'no');
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-form.html
4
  Tags: form, forms, form builder, form maker, form manager, form plugin, form with recaptcha, forms plugin, multiple forms, paypal form, survey form, feedback form, feedback forms, contact form,contact form plugin, contact form builder, form creator, email form, secure form, web form, form to email, contact forms, custom forms, form widget, captcha form, wordpress contact form ,recaptcha contact form, form creation, contact form with auto reply, widget contact form, builder, feedback, contacts form plugin , custom contact form, contact us form, formular, formulario, admin, captcha, contact, database, email, javascript, jquery, page, plugin, survey, widget, custom form, forms creator, input, validation, send copy, form with captcha
5
  Requires at least: 3.4
6
  Tested up to: 4.3
7
- Stable tag: 1.7.73
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -293,6 +293,9 @@ The Form Maker (Pro version) has simple PayPal integration. This allows the user
293
 
294
  == Changelog ==
295
 
 
 
 
296
  = 1.7.73 =
297
  New: Notices
298
 
4
  Tags: form, forms, form builder, form maker, form manager, form plugin, form with recaptcha, forms plugin, multiple forms, paypal form, survey form, feedback form, feedback forms, contact form,contact form plugin, contact form builder, form creator, email form, secure form, web form, form to email, contact forms, custom forms, form widget, captcha form, wordpress contact form ,recaptcha contact form, form creation, contact form with auto reply, widget contact form, builder, feedback, contacts form plugin , custom contact form, contact us form, formular, formulario, admin, captcha, contact, database, email, javascript, jquery, page, plugin, survey, widget, custom form, forms creator, input, validation, send copy, form with captcha
5
  Requires at least: 3.4
6
  Tested up to: 4.3
7
+ Stable tag: 1.7.74
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
293
 
294
  == Changelog ==
295
 
296
+ = 1.7.74 =
297
+ Fixed: Minor bugs
298
+
299
  = 1.7.73 =
300
  New: Notices
301