EmbedPress – Embed Google Docs, YouTube, Maps, Vimeo, Wistia Videos & Upload PDF, PPT in Gutenberg & Elementor - Version 1.6.3

Version Description

Release Date: 2017-03-13

  • Fixed PHP Warning for Gist urls
Download this release

Release Info

Developer pressshack
Plugin Icon wp plugin EmbedPress – Embed Google Docs, YouTube, Maps, Vimeo, Wistia Videos & Upload PDF, PPT in Gutenberg & Elementor
Version 1.6.3
Comparing to
See all releases

Code changes from version 1.6.2 to 1.6.3

Files changed (5) hide show
  1. EmbedPress/Shortcode.php +19 -8
  2. changelog.txt +5 -0
  3. embedpress.php +1 -1
  4. includes.php +1 -1
  5. readme.txt +6 -1
EmbedPress/Shortcode.php CHANGED
@@ -540,14 +540,25 @@ class Shortcode
540
  */
541
  private static function sanitizeUrlData($data)
542
  {
543
- $attributes = get_object_vars($data);
544
-
545
- foreach ($attributes as $key => $value) {
546
- if (substr_count($key, '-')) {
547
- unset($data->$key);
548
-
549
- $key = str_replace('-', '_', $key);
550
- $data->$key = $value;
 
 
 
 
 
 
 
 
 
 
 
551
  }
552
  }
553
 
540
  */
541
  private static function sanitizeUrlData($data)
542
  {
543
+ if (is_object($data)) {
544
+ $attributes = get_object_vars($data);
545
+
546
+ foreach ($attributes as $key => $value) {
547
+ if (substr_count($key, '-')) {
548
+ unset($data->$key);
549
+
550
+ $key = str_replace('-', '_', $key);
551
+ $data->$key = $value;
552
+ }
553
+ }
554
+ } elseif (is_array($data)) {
555
+ foreach ($data as $key => $value) {
556
+ if (substr_count($key, '-')) {
557
+ unset($data[$key]);
558
+
559
+ $key = str_replace('-', '_', $key);
560
+ $data[$key] = $value;
561
+ }
562
  }
563
  }
564
 
changelog.txt CHANGED
@@ -1,5 +1,10 @@
1
  == Changelog ==
2
 
 
 
 
 
 
3
  = 1.6.2 =
4
  Release Date: 2017-03-13
5
 
1
  == Changelog ==
2
 
3
+ = 1.6.3 =
4
+ Release Date: 2017-03-13
5
+
6
+ * Fixed PHP Warning for Gist urls
7
+
8
  = 1.6.2 =
9
  Release Date: 2017-03-13
10
 
embedpress.php CHANGED
@@ -12,7 +12,7 @@
12
  * @embedpress
13
  * Plugin Name: EmbedPress
14
  * Plugin URI: https://pressshack.com/embedpress/
15
- * Version: 1.6.2
16
  * Description: WordPress supports around 35 embed sources, but EmbedPress adds over 40 more, including Facebook, Google Maps, Google Docs, UStream! Just use the URL!
17
  * Author: PressShack
18
  * Author URI: http://pressshack.com
12
  * @embedpress
13
  * Plugin Name: EmbedPress
14
  * Plugin URI: https://pressshack.com/embedpress/
15
+ * Version: 1.6.3
16
  * Description: WordPress supports around 35 embed sources, but EmbedPress adds over 40 more, including Facebook, Google Maps, Google Docs, UStream! Just use the URL!
17
  * Author: PressShack
18
  * Author URI: http://pressshack.com
includes.php CHANGED
@@ -20,7 +20,7 @@ if (!defined('EMBEDPRESS_PLG_NAME')) {
20
  }
21
 
22
  if (!defined('EMBEDPRESS_PLG_VERSION')) {
23
- define('EMBEDPRESS_PLG_VERSION', "1.6.2");
24
  }
25
 
26
  if (!defined('EMBEDPRESS_PATH_BASE')) {
20
  }
21
 
22
  if (!defined('EMBEDPRESS_PLG_VERSION')) {
23
+ define('EMBEDPRESS_PLG_VERSION', "1.6.3");
24
  }
25
 
26
  if (!defined('EMBEDPRESS_PATH_BASE')) {
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: PressShack
3
  Tags: 23hq, amcharts, animoto, bambuser, cacoo, chartblocks, chirbit, circuitlab, cloudup, clyp, collegehumor, coub, crowd ranking, daily mile, dailymotion, devianart, dipity, dotsub, facebook, flickr, funnyordie, gettyimages, giphy, github gist, google docs, google drawings, google maps, google sheets, google slides, huffduffer, hulu, imgur, infogram, instagram, issuu, kickstarter, meetup, mixcloud, mobypicture, nfb, photobucket, polldaddy, porfolium, reddit, release wire, reverbnation, roomshare, rutube, sapo videos, scribd, shortnote, shoudio, sketchfab, slideshare, smugmug, soundcloud, speaker deck, spotify, ted, tumblr, twitter, ustream, viddler, videojug, videopress, vimeo, vine, wordpress tv, youtube, twitch tv
4
  Requires at least: 4.0
5
  Tested up to: 4.7
6
- Stable tag: 1.6.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -131,6 +131,11 @@ There're two ways to install EmbedPress plugin:
131
 
132
  == Changelog ==
133
 
 
 
 
 
 
134
  = 1.6.2 =
135
  Release Date: 2017-03-13
136
 
3
  Tags: 23hq, amcharts, animoto, bambuser, cacoo, chartblocks, chirbit, circuitlab, cloudup, clyp, collegehumor, coub, crowd ranking, daily mile, dailymotion, devianart, dipity, dotsub, facebook, flickr, funnyordie, gettyimages, giphy, github gist, google docs, google drawings, google maps, google sheets, google slides, huffduffer, hulu, imgur, infogram, instagram, issuu, kickstarter, meetup, mixcloud, mobypicture, nfb, photobucket, polldaddy, porfolium, reddit, release wire, reverbnation, roomshare, rutube, sapo videos, scribd, shortnote, shoudio, sketchfab, slideshare, smugmug, soundcloud, speaker deck, spotify, ted, tumblr, twitter, ustream, viddler, videojug, videopress, vimeo, vine, wordpress tv, youtube, twitch tv
4
  Requires at least: 4.0
5
  Tested up to: 4.7
6
+ Stable tag: 1.6.3
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
131
 
132
  == Changelog ==
133
 
134
+ = 1.6.3 =
135
+ Release Date: 2017-03-13
136
+
137
+ * Fixed PHP Warning for Gist urls
138
+
139
  = 1.6.2 =
140
  Release Date: 2017-03-13
141