PluginProbe
EmbedPress – PDF Embedder, 3D PDF FlipBook, Google Reviews, YouTube Videos, Upload & Embed PDF documents / 4.2.3
EmbedPress – PDF Embedder, 3D PDF FlipBook, Google Reviews, YouTube Videos, Upload & Embed PDF documents v4.2.3
4.6.5 4.6.4 4.6.3 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 trunk 1.0.0 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.3.0 1.3.1 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 All 189 releases
← All changes | includes.php +3 -17 4.5.34.2.3 View file →
@@ -21,9 +21,9 @@
21 21 define('EMBEDPRESS_PLG_NAME', 'embedpress');
22 22 }
23 23
24 24 if ( ! defined('EMBEDPRESS_VERSION')) {
25 - define('EMBEDPRESS_VERSION', "4.5.3");
25 + define('EMBEDPRESS_VERSION', "4.2.3");
26 26 /**
27 27 * @deprecated 2.2.0
28 28 */
29 29 define('EMBEDPRESS_PLG_VERSION', EMBEDPRESS_VERSION);
@@ -45,16 +45,8 @@
45 45 if ( ! defined('EMBEDPRESS_URL_ASSETS')) {
46 46 define('EMBEDPRESS_URL_ASSETS', plugins_url(EMBEDPRESS_PLG_NAME) . "/assets/");
47 47 }
48 48
49 -if ( ! defined('EMBEDPRESS_URL_STATIC')) {
50 - define('EMBEDPRESS_URL_STATIC', plugins_url(EMBEDPRESS_PLG_NAME) . "/static/");
51 -}
52 -
53 -if ( ! defined('EMBEDPRESS_PATH_STATIC')) {
54 - define('EMBEDPRESS_PATH_STATIC', EMBEDPRESS_PATH_BASE . "static/");
55 -}
56 -
57 49 if ( ! defined('EMBEDPRESS_NAMESPACE')) {
58 50 define('EMBEDPRESS_NAMESPACE', "\\EmbedPress");
59 51 }
60 52
@@ -157,13 +149,7 @@
157 149 }
158 150
159 151
160 152
161 -// Includes the EmbedPress blocks system
162 -// Check if we should use the new block system
163 -if (apply_filters('embedpress_use_new_block_system', true)) {
164 - $new_block_file = __DIR__ . '/EmbedPress/Gutenberg/InitBlocks.php';
153 +// Includes the Gutenberg blocks for EmbedPress
154 +require_once __DIR__ . '/Gutenberg/plugin.php';
165 155
166 - if (file_exists($new_block_file)) {
167 - require_once $new_block_file;
168 - }
169 -}