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

Version Description

Release Date: 2016-11-14

  • Fixed a bug that could break the editor in some cases;
  • Moved EmbedPress Settings page link to the main admin-sidebar;
  • Minor CSS enhancements.
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.3.1
Comparing to
See all releases

Code changes from version 1.3.0 to 1.3.1

EmbedPress/Ends/Back/Settings.php CHANGED
@@ -109,7 +109,7 @@ class Settings
109
  */
110
  public static function registerMenuItem()
111
  {
112
- add_options_page('EmbedPress Settings', 'EmbedPress', 'manage_options', 'embedpress', array(self::$namespace, 'renderForm'));
113
  }
114
 
115
  /**
@@ -144,7 +144,7 @@ class Settings
144
  <?php settings_fields(self::$sectionGroupIdentifier); ?>
145
  <?php do_settings_sections(self::$identifier); ?>
146
 
147
- <input name="Submit" type="submit" value="Save changes" />
148
  </form>
149
  </div>
150
  <?php
109
  */
110
  public static function registerMenuItem()
111
  {
112
+ add_object_page('EmbedPress Settings', 'EmbedPress', 'manage_options', 'embedpress', array(self::$namespace, 'renderForm'));
113
  }
114
 
115
  /**
144
  <?php settings_fields(self::$sectionGroupIdentifier); ?>
145
  <?php do_settings_sections(self::$identifier); ?>
146
 
147
+ <input name="Submit" type="submit" class="button button-primary" value="Save changes" />
148
  </form>
149
  </div>
150
  <?php
EmbedPress/Plugin.php CHANGED
@@ -118,6 +118,10 @@ class Plugin
118
  add_action('admin_init', array($settingsClassNamespace, 'registerActions'));
119
  unset($settingsClassNamespace);
120
 
 
 
 
 
121
  if ($plgSettings->enablePluginInAdmin) {
122
  add_action('init', array('\EmbedPress\Disabler', 'run'), 1);
123
 
118
  add_action('admin_init', array($settingsClassNamespace, 'registerActions'));
119
  unset($settingsClassNamespace);
120
 
121
+ // Load CSS
122
+ wp_register_style( 'embedpress-admin', plugins_url( 'embedpress/assets/css/admin.css' ) );
123
+ wp_enqueue_style( 'embedpress-admin' );
124
+
125
  if ($plgSettings->enablePluginInAdmin) {
126
  add_action('init', array('\EmbedPress\Disabler', 'run'), 1);
127
 
assets/css/admin.css ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * @package EmbedPress
3
+ * @author PressShack <help@pressshack.com>
4
+ * @copyright Copyright (C) 2016 Open Source Training, LLC. All rights reserved.
5
+ * @license GPLv2 or later
6
+ * @since 1.3.1
7
+ */
8
+
9
+ #toplevel_page_embedpress .dashicons-admin-generic::before,
10
+ #toplevel_page_embedpress .current .dashicons-admin-generic::before {
11
+ background-image: url(../images/menu-icon.png);
12
+ background-repeat: no-repeat;
13
+ background-position: 0 8px;
14
+ background-size: 19px auto;
15
+ content: " ";
16
+ transition: none;
17
+ -moz-transition: none;
18
+ -webkit-transition: none;
19
+ -o-transition: none;
20
+ }
21
+
22
+ #toplevel_page_embedpress:active .wp-not-current-submenu .dashicons-admin-generic::before,
23
+ #toplevel_page_embedpress:hover .wp-not-current-submenu .dashicons-admin-generic::before {
24
+ background-position: 0 -26px;
25
+ }
26
+
27
+ #toplevel_page_embedpress .current .dashicons-admin-generic::before {
28
+ background-position: 0 -60px;
29
+ }
assets/images/menu-icon.png ADDED
Binary file
assets/js/preview.js CHANGED
@@ -1186,7 +1186,7 @@
1186
  self.editor.serializer.addNodeFilter('p', function addNodeFilterIntoSerializer(nodes, arg) {
1187
  self.each(nodes, function eachNodeInSerializer(node) {
1188
  if (node.firstChild == node.lastChild) {
1189
- if (node.firstChild.value === "&nbsp;" || !node.firstChild.value.trim().length) {
1190
  node.remove();
1191
  }
1192
  }
1186
  self.editor.serializer.addNodeFilter('p', function addNodeFilterIntoSerializer(nodes, arg) {
1187
  self.each(nodes, function eachNodeInSerializer(node) {
1188
  if (node.firstChild == node.lastChild) {
1189
+ if (node.firstChild && "value" in node.firstChild && (node.firstChild.value === "&nbsp;" || !node.firstChild.value.trim().length)) {
1190
  node.remove();
1191
  }
1192
  }
changelog.txt CHANGED
@@ -1,4 +1,11 @@
1
  == Changelog ==
 
 
 
 
 
 
 
2
  = 1.3.0 =
3
  Release Date: 2016-11-04
4
 
1
  == Changelog ==
2
+ = 1.3.1 =
3
+ Release Date: 2016-11-14
4
+
5
+ * Fixed a bug that could break the editor in some cases;
6
+ * Moved EmbedPress Settings page link to the main admin-sidebar;
7
+ * Minor CSS enhancements.
8
+
9
  = 1.3.0 =
10
  Release Date: 2016-11-04
11
 
embedpress.php CHANGED
@@ -12,7 +12,7 @@
12
  * @embedpress
13
  * Plugin Name: EmbedPress
14
  * Plugin URI: http://pressshack.com/embedpress/
15
- * Version: 1.3.0
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: http://pressshack.com/embedpress/
15
+ * Version: 1.3.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
@@ -16,7 +16,7 @@ if (!defined('EMBEDPRESS_PLG_NAME')) {
16
  }
17
 
18
  if (!defined('EMBEDPRESS_PLG_VERSION')) {
19
- define('EMBEDPRESS_PLG_VERSION', "1.3.0");
20
  }
21
 
22
  if (!defined('EMBEDPRESS_PATH_BASE')) {
16
  }
17
 
18
  if (!defined('EMBEDPRESS_PLG_VERSION')) {
19
+ define('EMBEDPRESS_PLG_VERSION', "1.3.1");
20
  }
21
 
22
  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, 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
4
  Requires at least: 4.0
5
  Tested up to: 4.6.1
6
- Stable tag: 1.3.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -90,6 +90,13 @@ There're two ways to install EmbedPress plugin:
90
  `
91
 
92
  == Changelog ==
 
 
 
 
 
 
 
93
  = 1.3.0 =
94
  Release Date: 2016-11-04
95
 
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, 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
4
  Requires at least: 4.0
5
  Tested up to: 4.6.1
6
+ Stable tag: 1.3.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
90
  `
91
 
92
  == Changelog ==
93
+ = 1.3.1 =
94
+ Release Date: 2016-11-14
95
+
96
+ * Fixed a bug that could break the editor in some cases;
97
+ * Moved EmbedPress Settings page link to the main admin-sidebar;
98
+ * Minor CSS enhancements.
99
+
100
  = 1.3.0 =
101
  Release Date: 2016-11-04
102