Version Description
Release Date: 2017-03-07
- Fixed embed of links from reverbnation.com;
Download this release
Release Info
Developer | pressshack |
Plugin | EmbedPress – Embed Google Docs, YouTube, Maps, Vimeo, Wistia Videos & Upload PDF, PPT in Gutenberg & Elementor |
Version | 1.6.1 |
Comparing to | |
See all releases |
Code changes from version 1.6.0 to 1.6.1
- EmbedPress/Shortcode.php +32 -0
- assets/css/vendor/bootstrap/bootstrap.css.map +0 -0
- assets/images/menu-icon.png +0 -0
- changelog.txt +6 -0
- embedpress.php +1 -1
- includes.php +1 -1
- readme.txt +16 -1
EmbedPress/Shortcode.php
CHANGED
@@ -129,6 +129,9 @@ class Shortcode
|
|
129 |
$urlData = self::$oEmbedInstance->fetch($serviceProvider, $content, $attributes);
|
130 |
}
|
131 |
|
|
|
|
|
|
|
132 |
$eventResults = apply_filters('embedpress:onBeforeEmbed', $urlData);
|
133 |
if (empty($eventResults)) {
|
134 |
// EmbedPress seems unable to embed the url.
|
@@ -521,4 +524,33 @@ class Shortcode
|
|
521 |
|
522 |
return $headerValue;
|
523 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
524 |
}
|
129 |
$urlData = self::$oEmbedInstance->fetch($serviceProvider, $content, $attributes);
|
130 |
}
|
131 |
|
132 |
+
// Sanitize the data
|
133 |
+
$urlData = self::sanitizeUrlData($urlData);
|
134 |
+
|
135 |
$eventResults = apply_filters('embedpress:onBeforeEmbed', $urlData);
|
136 |
if (empty($eventResults)) {
|
137 |
// EmbedPress seems unable to embed the url.
|
524 |
|
525 |
return $headerValue;
|
526 |
}
|
527 |
+
|
528 |
+
/**
|
529 |
+
* Sanitize the object returned by the embed source. Sometimes we need to convert
|
530 |
+
* attributes from "dash" separated to "underline" separated to be able to access
|
531 |
+
* those attributes from the object, without having to convert it to an array.
|
532 |
+
*
|
533 |
+
* @since 1.6.1
|
534 |
+
* @access private
|
535 |
+
* @static
|
536 |
+
*
|
537 |
+
* @param object $data
|
538 |
+
*
|
539 |
+
* @return object
|
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 |
+
|
554 |
+
return $data;
|
555 |
+
}
|
556 |
}
|
assets/css/vendor/bootstrap/bootstrap.css.map
CHANGED
File without changes
|
assets/images/menu-icon.png
CHANGED
File without changes
|
changelog.txt
CHANGED
@@ -1,4 +1,10 @@
|
|
1 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
= 1.6.0 =
|
3 |
Release Date: 2017-02-28
|
4 |
|
1 |
== Changelog ==
|
2 |
+
|
3 |
+
= 1.6.1 =
|
4 |
+
Release Date: 2017-03-07
|
5 |
+
|
6 |
+
* Fixed embed of links from reverbnation.com;
|
7 |
+
|
8 |
= 1.6.0 =
|
9 |
Release Date: 2017-02-28
|
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.
|
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.1
|
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.
|
24 |
}
|
25 |
|
26 |
if (!defined('EMBEDPRESS_PATH_BASE')) {
|
20 |
}
|
21 |
|
22 |
if (!defined('EMBEDPRESS_PLG_VERSION')) {
|
23 |
+
define('EMBEDPRESS_PLG_VERSION', "1.6.1");
|
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.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -120,7 +120,22 @@ There're two ways to install EmbedPress plugin:
|
|
120 |
[embed class="cool-embed"]your-other-link[/embed]
|
121 |
`
|
122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
= 1.6.0 =
|
125 |
Release Date: 2017-02-28
|
126 |
|
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.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
120 |
[embed class="cool-embed"]your-other-link[/embed]
|
121 |
`
|
122 |
|
123 |
+
== Screenshots ==
|
124 |
+
|
125 |
+
1. Paste any URL as you normally would
|
126 |
+
2. Loading the embed...
|
127 |
+
3. See the embed inside the editor
|
128 |
+
4. The embed in the site
|
129 |
+
5. Accessing the options panel you can remove or edit the embed
|
130 |
+
6. You can customize each embed
|
131 |
+
|
132 |
== Changelog ==
|
133 |
+
|
134 |
+
= 1.6.1 =
|
135 |
+
Release Date: 2017-03-07
|
136 |
+
|
137 |
+
* Fixed embed of links from reverbnation.com;
|
138 |
+
|
139 |
= 1.6.0 =
|
140 |
Release Date: 2017-02-28
|
141 |
|