PluginProbe
Elementor Website Builder – more than just a page builder / 3.35.0-dev4
Elementor Website Builder – more than just a page builder v3.35.0-dev4
4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 All 455 releases
← All changes | vendor/elementor/wp-one-package/runner.php +11 -8 4.3.0-beta1 → 3.35.0-dev4 View file →
@@ -27,14 +27,17 @@
27 27 unset( $__composer_autoload_files[ $autoload_files_id ] );
28 28 }
29 29 }
30 30
31 -$pattern = '#/([^/]+)/vendor/elementor/#';
32 -if ( preg_match( $pattern, __DIR__, $matches ) ) {
33 - $wp_one_package_versions[ $matches[1] ] = '1.0.68';
31 +if ( defined( 'WP_PLUGIN_DIR' ) ) {
32 + $pattern = '#^' . preg_quote( WP_PLUGIN_DIR, '#' ) . '/([^\\/]+)#';
33 + $plugin_slug = preg_match( $pattern, __DIR__, $matches ) ? $matches[1] : null;
34 + if ( $plugin_slug ) {
35 + $wp_one_package_versions[ $plugin_slug ] = '1.0.47';
36 + }
34 37 }
35 38
36 -if ( ! function_exists( 'elementor_one_register_1_dot_0_dot_68' ) && function_exists( 'add_action' ) ) {
39 +if ( ! function_exists( 'elementor_one_register_1_dot_0_dot_47' ) && function_exists( 'add_action' ) ) {
37 40
38 41 if ( ! class_exists( '\ElementorOne\Versions', false ) ) {
39 42 require_once __DIR__ . '/src/Versions.php';
40 43 add_action( 'plugins_loaded', [ \ElementorOne\Versions::class, 'initialize_latest_version' ], -15, 0 );
@@ -39,16 +42,16 @@
39 42 require_once __DIR__ . '/src/Versions.php';
40 43 add_action( 'plugins_loaded', [ \ElementorOne\Versions::class, 'initialize_latest_version' ], -15, 0 );
41 44 }
42 45
43 - add_action( 'plugins_loaded', 'elementor_one_register_1_dot_0_dot_68', -20, 0 );
46 + add_action( 'plugins_loaded', 'elementor_one_register_1_dot_0_dot_47', -20, 0 );
44 47
45 - function elementor_one_register_1_dot_0_dot_68() {
48 + function elementor_one_register_1_dot_0_dot_47() {
46 49 $versions = \ElementorOne\Versions::instance();
47 - $versions->register( '1.0.68', 'elementor_one_initialize_1_dot_0_dot_68' );
50 + $versions->register( '1.0.47', 'elementor_one_initialize_1_dot_0_dot_47' );
48 51 }
49 52
50 - function elementor_one_initialize_1_dot_0_dot_68() {
53 + function elementor_one_initialize_1_dot_0_dot_47() {
51 54 // The Loader class will be autoloaded from the highest version source
52 55 \ElementorOne\Loader::init();
53 56 }
54 57 }