PluginProbe
Elementor Website Builder – more than just a page builder / 3.7.4
Elementor Website Builder – more than just a page builder v3.7.4
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 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | includes/maintenance.php +1 -25 4.0.73.7.4 View file →
@@ -1,9 +1,8 @@
1 1 <?php
2 2 namespace Elementor;
3 3
4 4 use Elementor\Core\Kits\Manager;
5 -use Elementor\Core\Upgrade\Manager as Upgrade_Manager;
6 5
7 6 if ( ! defined( 'ABSPATH' ) ) {
8 7 exit; // Exit if accessed directly.
9 8 }
@@ -24,9 +23,8 @@
24 23 * Set Elementor activation hook.
25 24 *
26 25 * Fired by `register_activation_hook` when the plugin is activated.
27 26 *
28 - * @param bool $network_wide
29 27 * @since 1.0.0
30 28 * @access public
31 29 * @static
32 30 */
@@ -46,31 +44,12 @@
46 44 return;
47 45 }
48 46
49 47 static::create_default_kit();
50 - static::insert_defaults_options();
51 48
52 49 set_transient( 'elementor_activation_redirect', true, MINUTE_IN_SECONDS );
53 50 }
54 51
55 - public static function insert_defaults_options() {
56 - $history = Upgrade_Manager::get_installs_history();
57 - if ( empty( $history ) ) {
58 - $default_options = [
59 - 'elementor_font_display' => 'swap',
60 - ];
61 - foreach ( $default_options as $option_name => $option_value ) {
62 - if ( \Elementor\Utils::is_empty( get_option( $option_name ) ) ) {
63 - add_option( $option_name, $option_value );
64 - }
65 - }
66 - }
67 - }
68 -
69 - public static function deactivation() {
70 - Api::get_deactivation_data();
71 - }
72 -
73 52 /**
74 53 * Uninstall Elementor.
75 54 *
76 55 * Set Elementor uninstallation hook.
@@ -82,10 +61,8 @@
82 61 * @static
83 62 */
84 63 public static function uninstall() {
85 64 wp_clear_scheduled_hook( 'elementor/tracker/send_event' );
86 -
87 - Api::get_uninstalled_data();
88 65 }
89 66
90 67 /**
91 68 * Init.
@@ -97,9 +74,8 @@
97 74 * @static
98 75 */
99 76 public static function init() {
100 77 register_activation_hook( ELEMENTOR_PLUGIN_BASE, [ __CLASS__, 'activation' ] );
101 - register_deactivation_hook( ELEMENTOR_PLUGIN_BASE, [ __CLASS__, 'deactivation' ] );
102 78 register_uninstall_hook( ELEMENTOR_PLUGIN_BASE, [ __CLASS__, 'uninstall' ] );
103 79
104 80 add_action( 'wpmu_new_blog', function ( $site_id ) {
105 81 if ( ! is_plugin_active_for_network( ELEMENTOR_PLUGIN_BASE ) ) {
@@ -120,9 +96,9 @@
120 96
121 97 Manager::create_default_kit();
122 98
123 99 restore_current_blog();
124 - }
100 + };
125 101
126 102 return;
127 103 }
128 104