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

Version Description

Download this release

Release Info

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

Code changes from version 3.0.1 to 3.0.2

EmbedPress/Core.php CHANGED
@@ -5,7 +5,6 @@ namespace EmbedPress;
5
  use EmbedPress\Ends\Back\Handler as EndHandlerAdmin;
6
  use EmbedPress\Ends\Back\Settings\EmbedpressSettings;
7
  use EmbedPress\Ends\Front\Handler as EndHandlerPublic;
8
- use EmbedPress\Includes\Classes\Feature_Enhancer;
9
  use EmbedPress\Includes\Traits\Shared;
10
 
11
 
5
  use EmbedPress\Ends\Back\Handler as EndHandlerAdmin;
6
  use EmbedPress\Ends\Back\Settings\EmbedpressSettings;
7
  use EmbedPress\Ends\Front\Handler as EndHandlerPublic;
 
8
  use EmbedPress\Includes\Traits\Shared;
9
 
10
 
EmbedPress/Ends/Back/Settings/assets/js/settings.js CHANGED
@@ -246,7 +246,7 @@ jQuery(document).ready( function($){
246
  // track changes in settings page
247
 
248
  // Save EmbedPRess Settings data using Ajax
249
- $(document).on('submit', 'form', function (e) {
250
  e.preventDefault();
251
  let $form = $(this);
252
  let $submit_btn = $form.find('.embedpress-submit-btn');
246
  // track changes in settings page
247
 
248
  // Save EmbedPRess Settings data using Ajax
249
+ $(document).on('submit', 'form.embedpress-settings-form', function (e) {
250
  e.preventDefault();
251
  let $form = $(this);
252
  let $submit_btn = $form.find('.embedpress-submit-btn');
EmbedPress/Ends/Back/Settings/templates/partials/logo.php CHANGED
@@ -8,7 +8,7 @@
8
  <ul class="embedpress-version-wrapper">
9
  <li>Core Version: V<?php echo EMBEDPRESS_VERSION; ?></li>
10
  <?php if ( $pro_active ) { ?>
11
- <li>Pro Version: V<?php echo EMBEDPRESS_PRO_VERSION; ?></li>
12
  <?php }?>
13
  </ul>
14
  </header>
8
  <ul class="embedpress-version-wrapper">
9
  <li>Core Version: V<?php echo EMBEDPRESS_VERSION; ?></li>
10
  <?php if ( $pro_active ) { ?>
11
+ <li>Pro Version: V<?php echo get_embedpress_pro_version(); ?></li>
12
  <?php }?>
13
  </ul>
14
  </header>
EmbedPress/Includes/Traits/Shared.php CHANGED
@@ -105,7 +105,7 @@ trait Shared {
105
  $notice->message( 'upsale', '<p>' . __( 'Thank you for relying on EmbedPress with 30,000 other websites. Checkout our Pro features.', $notice->text_domain ) . '</p>' );
106
 
107
  // Update Notice For PRO Version
108
- if ( $this->is_pro_active() && \version_compare( EMBEDPRESS_PRO_VERSION, '2.0.0', '<' ) ) {
109
  $notice->classes( 'update', 'notice is-dismissible ' );
110
  $notice->message( 'update', '<p>' . __( 'You are using an incompatible version of EmbedPress PRO. Please update to v3.4.0+. <a href="https://essential-addons.com/elementor/docs/manually-update-essential-addons-pro/" target="_blank">Follow manual update guide.</a>', $notice->text_domain ) . '</p>' );
111
  $notice->thumbnail( 'update', plugins_url( 'assets/images/icon-128x128.png', EMBEDPRESS_PLUGIN_BASENAME ) );
@@ -131,7 +131,7 @@ trait Shared {
131
  'review' => $notice->makeTime( $notice->timestamp, '7 Day' ), // after 3 days
132
  ],
133
  );
134
- if ( $this->is_pro_active() && \version_compare( EMBEDPRESS_PRO_VERSION, '2.0.0', '<' ) ) {
135
  $notice->options_args['notice_will_show']['update'] = $notice->timestamp;
136
  }
137
 
105
  $notice->message( 'upsale', '<p>' . __( 'Thank you for relying on EmbedPress with 30,000 other websites. Checkout our Pro features.', $notice->text_domain ) . '</p>' );
106
 
107
  // Update Notice For PRO Version
108
+ if ( $this->is_pro_active() && \version_compare( get_embedpress_pro_version(), '2.0.0', '<' ) ) {
109
  $notice->classes( 'update', 'notice is-dismissible ' );
110
  $notice->message( 'update', '<p>' . __( 'You are using an incompatible version of EmbedPress PRO. Please update to v3.4.0+. <a href="https://essential-addons.com/elementor/docs/manually-update-essential-addons-pro/" target="_blank">Follow manual update guide.</a>', $notice->text_domain ) . '</p>' );
111
  $notice->thumbnail( 'update', plugins_url( 'assets/images/icon-128x128.png', EMBEDPRESS_PLUGIN_BASENAME ) );
131
  'review' => $notice->makeTime( $notice->timestamp, '7 Day' ), // after 3 days
132
  ],
133
  );
134
+ if ( $this->is_pro_active() && \version_compare( get_embedpress_pro_version(), '2.0.0', '<' ) ) {
135
  $notice->options_args['notice_will_show']['update'] = $notice->timestamp;
136
  }
137
 
embedpress.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: EmbedPress lets you embed videos, images, posts, audio, maps and uplaoad PDF, DOC, PPT & all other types of content into your WordPress site with one-click and showcase it beautifully for the visitors. 100+ sources supported.
6
  * Author: WPDeveloper
7
  * Author URI: https://wpdeveloper.net
8
- * Version: 3.0.1
9
  * Text Domain: embedpress
10
  * Domain Path: /languages
11
  *
@@ -54,6 +54,30 @@ function is_embedpress_pro_active() {
54
  return is_plugin_active('embedpress-pro/embedpress-pro.php');
55
  }
56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  function onPluginActivationCallback()
58
  {
59
  Core::onPluginActivationCallback();
5
  * Description: EmbedPress lets you embed videos, images, posts, audio, maps and uplaoad PDF, DOC, PPT & all other types of content into your WordPress site with one-click and showcase it beautifully for the visitors. 100+ sources supported.
6
  * Author: WPDeveloper
7
  * Author URI: https://wpdeveloper.net
8
+ * Version: 3.0.2
9
  * Text Domain: embedpress
10
  * Domain Path: /languages
11
  *
54
  return is_plugin_active('embedpress-pro/embedpress-pro.php');
55
  }
56
 
57
+ /**
58
+ * Get the version of the currently activated embedpress pro plugin dynamically
59
+ * @return false|mixed
60
+ */
61
+ function get_embedpress_pro_version() {
62
+ if ( is_embedpress_pro_active() ) {
63
+ $p = wp_get_active_and_valid_plugins();
64
+ $p = array_filter( $p, function ( $plugin){
65
+ return !empty( strpos( $plugin, 'embedpress-pro'));
66
+ });
67
+ $p = array_values( $p);
68
+ if ( !empty( $p[0]) ) {
69
+ $d = get_plugin_data($p[0]);
70
+ if ( isset( $d['Version']) ) {
71
+ return $d['Version'];
72
+ }
73
+ return false;
74
+ }
75
+ return false;
76
+ }
77
+ return false;
78
+
79
+ }
80
+
81
  function onPluginActivationCallback()
82
  {
83
  Core::onPluginActivationCallback();
includes.php CHANGED
@@ -22,16 +22,13 @@ if ( ! defined('EMBEDPRESS_PLG_NAME')) {
22
  }
23
 
24
  if ( ! defined('EMBEDPRESS_VERSION')) {
25
- define('EMBEDPRESS_VERSION', "3.0.1");
26
  /**
27
  * @deprecated 2.2.0
28
  */
29
  define('EMBEDPRESS_PLG_VERSION', EMBEDPRESS_VERSION);
30
  }
31
 
32
- if ( ! defined('EMBEDPRESS_PRO_VERSION')) {
33
- define('EMBEDPRESS_PRO_VERSION', "3.0.0");
34
- }
35
 
36
  if ( ! defined('EMBEDPRESS_ROOT')) {
37
  define('EMBEDPRESS_ROOT', dirname(__FILE__));
22
  }
23
 
24
  if ( ! defined('EMBEDPRESS_VERSION')) {
25
+ define('EMBEDPRESS_VERSION', "3.0.2");
26
  /**
27
  * @deprecated 2.2.0
28
  */
29
  define('EMBEDPRESS_PLG_VERSION', EMBEDPRESS_VERSION);
30
  }
31
 
 
 
 
32
 
33
  if ( ! defined('EMBEDPRESS_ROOT')) {
34
  define('EMBEDPRESS_ROOT', dirname(__FILE__));
readme.txt CHANGED
@@ -6,7 +6,7 @@ Tags: embed, embed youtube, gutenberg embed, pdf, doc, docs, ppt, elementor embe
6
  Requires at least: 4.6
7
  Tested up to: 5.7
8
  Requires PHP: 5.6
9
- Stable tag: 3.0.1
10
  License: GPLv3 or later
11
  License URI: https://opensource.org/licenses/GPL-3.0
12
 
@@ -301,6 +301,10 @@ Not at all. You can set up everything your team needs without any coding knowled
301
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
302
  and this project adheres to [Semantic Versioning](http://semver.org/).
303
 
 
 
 
 
304
  = [3.0.1] - 2021-05-27 =
305
  * Added : Settings panel AJAX saving.
306
  * Improved : Saving method, user will get notified for any unsaved data.
6
  Requires at least: 4.6
7
  Tested up to: 5.7
8
  Requires PHP: 5.6
9
+ Stable tag: 3.0.2
10
  License: GPLv3 or later
11
  License URI: https://opensource.org/licenses/GPL-3.0
12
 
301
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
302
  and this project adheres to [Semantic Versioning](http://semver.org/).
303
 
304
+ = [3.0.2] - 2021-05-30 =
305
+ * Removed : Ajax saving from license page.
306
+ * Few minor bug fix and improvements.
307
+
308
  = [3.0.1] - 2021-05-27 =
309
  * Added : Settings panel AJAX saving.
310
  * Improved : Saving method, user will get notified for any unsaved data.