Easy Modal - Version 1.2.0.2

Version Description

  • Fixed issue of undefined array key.
Download this release

Release Info

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

Code changes from version 1.2.0.1 to 1.2.0.2

Files changed (2) hide show
  1. easy-modal.php +3 -4
  2. readme.txt +6 -1
easy-modal.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Easy Modal
4
  Plugin URI: https://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: 1.2.0.1
8
  Author URI: http://wizardinternetsolutions.com
9
  */
10
  if (!defined('EASYMODAL'))
@@ -20,7 +20,7 @@ if (!defined('EASYMODAL_URL'))
20
  define('EASYMODAL_URL', WP_PLUGIN_URL . '/' . EASYMODAL_SLUG);
21
 
22
  if (!defined('EASYMODAL_VERSION'))
23
- define('EASYMODAL_VERSION', '1.2.0.1' );
24
 
25
  class Easy_Modal {
26
  protected $api_url = 'http://easy-modal.com/api';
@@ -390,8 +390,7 @@ class Easy_Modal {
390
  public function _TinyMCEInit($initArray)
391
  {
392
  // Add Modal styles to styles dropdown
393
- $styles = json_decode($initArray['style_formats']);
394
- if(!is_array($styles)) $styles = array();
395
  foreach($this->getModalList() as $key => $modal)
396
  {
397
  $styles[] = array(
4
  Plugin URI: https://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: 1.2.0.2
8
  Author URI: http://wizardinternetsolutions.com
9
  */
10
  if (!defined('EASYMODAL'))
20
  define('EASYMODAL_URL', WP_PLUGIN_URL . '/' . EASYMODAL_SLUG);
21
 
22
  if (!defined('EASYMODAL_VERSION'))
23
+ define('EASYMODAL_VERSION', '1.2.0.2' );
24
 
25
  class Easy_Modal {
26
  protected $api_url = 'http://easy-modal.com/api';
390
  public function _TinyMCEInit($initArray)
391
  {
392
  // Add Modal styles to styles dropdown
393
+ $styles = !empty($initArray['style_formats']) && is_array(json_decode($initArray['style_formats'])) ? json_decode($initArray['style_formats']) : array();
 
394
  foreach($this->getModalList() as $key => $modal)
395
  {
396
  $styles[] = array(
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.2
8
  Tested up to: 3.6
9
- Stable tag: 1.2.0.1
10
  Easily create & style modals with any content. Theme editor to quickly style your modals. Add forms, social media boxes, videos, slideshows & more.
11
 
12
  == Description ==
@@ -66,7 +66,12 @@ We have only included some basic styling for the modal at this point. You can ad
66
  == Screenshots ==
67
  1. Easy Modal with default "Contact Fom 7" form.
68
  2. Shows CF7 Inline validation used during ajax submit
 
 
69
  == Changelog ==
 
 
 
70
  = 1.2.0.1 =
71
  * Fixed issue that caused wp editor to not load with certain themes.
72
 
6
  Tags: modal,modal box,modal form,modal window,popup,popup box,popup form,popup window,ajax forms
7
  Requires at least: 3.2
8
  Tested up to: 3.6
9
+ Stable tag: 1.2.0.2
10
  Easily create & style modals with any content. Theme editor to quickly style your modals. Add forms, social media boxes, videos, slideshows & more.
11
 
12
  == Description ==
66
  == Screenshots ==
67
  1. Easy Modal with default "Contact Fom 7" form.
68
  2. Shows CF7 Inline validation used during ajax submit
69
+
70
+
71
  == Changelog ==
72
+ = 1.2.0.2 =
73
+ * Fixed issue of undefined array key.
74
+
75
  = 1.2.0.1 =
76
  * Fixed issue that caused wp editor to not load with certain themes.
77