Easy Modal - Version 2.0.4

Version Description

Download this release

Release Info

Developer danieliser
Plugin Icon 128x128 Easy Modal
Version 2.0.4
Comparing to
See all releases

Code changes from version 2.0.3 to 2.0.4

Files changed (3) hide show
  1. classes/license.php +16 -11
  2. easy-modal.php +2 -2
  3. readme.txt +1 -1
classes/license.php CHANGED
@@ -81,23 +81,28 @@
81
  }
82
  return $license;
83
  }
84
-
85
-
86
-
87
  public function prepare_request($action, $args = array())
88
  {
89
  global $wp_version;
90
- return array(
91
  'action' => $action,
92
- 'slug' => $this->product['slug'],
93
- 'installed_version' => $this->product['version'],
94
- 'license_key' => emodal_get_license('key'),
95
- 'host' => array(
 
 
 
 
 
 
 
 
96
  'domain' => get_bloginfo('url'),
97
  'wp_version'=> $wp_version
98
- ),
99
- 'args' => $args,
100
- );
101
  }
102
  public function api_request($action, $args = array())
103
  {
81
  }
82
  return $license;
83
  }
 
 
 
84
  public function prepare_request($action, $args = array())
85
  {
86
  global $wp_version;
87
+ $array = array(
88
  'action' => $action,
89
+ 'args' => $args,
90
+ );
91
+ $license = emodal_get_license('key');
92
+ if($action != 'addon_list' || !empty($license))
93
+ {
94
+ $array['slug'] = $this->product['slug'];
95
+ $array['installed_version'] = $this->product['version'];
96
+ }
97
+ if(!empty($license))
98
+ {
99
+ $array['license_key'] = $license;
100
+ $array['host'] = array(
101
  'domain' => get_bloginfo('url'),
102
  'wp_version'=> $wp_version
103
+ );
104
+ }
105
+ return $array;
106
  }
107
  public function api_request($action, $args = array())
108
  {
easy-modal.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Easy Modal
4
  Plugin URI: http://easy-modal.com
5
  Description: Easily create & style modals with any content. Theme editor to quickly style your modals. Add forms, social media boxes, videos & more.
6
  Author: Wizard Internet Solutions
7
- Version: 2.0.3
8
  Author URI: http://wizardinternetsolutions.com
9
  Text Domain: easy-modal
10
  */
@@ -21,7 +21,7 @@ if (!defined('EMCORE_URL'))
21
  if (!defined('EMCORE_NONCE'))
22
  define('EMCORE_NONCE', EMCORE_SLUG.'_nonce' );
23
  if (!defined('EMCORE_VERSION'))
24
- define('EMCORE_VERSION', '2.0.3' );
25
  if (!defined('EMCORE_DB_VERSION'))
26
  define('EMCORE_DB_VERSION', '1' );
27
  if (!defined('EMCORE_API_URL'))
4
  Plugin URI: http://easy-modal.com
5
  Description: Easily create & style modals with any content. Theme editor to quickly style your modals. Add forms, social media boxes, videos & more.
6
  Author: Wizard Internet Solutions
7
+ Version: 2.0.4
8
  Author URI: http://wizardinternetsolutions.com
9
  Text Domain: easy-modal
10
  */
21
  if (!defined('EMCORE_NONCE'))
22
  define('EMCORE_NONCE', EMCORE_SLUG.'_nonce' );
23
  if (!defined('EMCORE_VERSION'))
24
+ define('EMCORE_VERSION', '2.0.4' );
25
  if (!defined('EMCORE_DB_VERSION'))
26
  define('EMCORE_DB_VERSION', '1' );
27
  if (!defined('EMCORE_API_URL'))
readme.txt CHANGED
@@ -6,7 +6,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
6
  Tags: modal,modal box,modal form,modal window,popup,popup box,popup form,popup window,ajax forms
7
  Requires at least: 3.4
8
  Tested up to: 3.9.2
9
- Stable tag: 2.0.3
10
  Make a pop up - any pop up. Logins, Auto Exits, Scroll Pops, Age Verification Pops. Theme, customize, make a glorious pop up!
11
  == Description ==
12
  Make a pop up - any pop up - Logins, Auto Exits, Scroll Pops, Age Verification Pops - use EasyModal's ultimate theme capabilities and customization options to make glorious pop ups that increase your site's usability and conversion rates.
6
  Tags: modal,modal box,modal form,modal window,popup,popup box,popup form,popup window,ajax forms
7
  Requires at least: 3.4
8
  Tested up to: 3.9.2
9
+ Stable tag: 2.0.4
10
  Make a pop up - any pop up. Logins, Auto Exits, Scroll Pops, Age Verification Pops. Theme, customize, make a glorious pop up!
11
  == Description ==
12
  Make a pop up - any pop up - Logins, Auto Exits, Scroll Pops, Age Verification Pops - use EasyModal's ultimate theme capabilities and customization options to make glorious pop ups that increase your site's usability and conversion rates.