PluginProbe
Social Media Auto Poster – Schedule & Publish to Buffer / 6.2.5
Social Media Auto Poster – Schedule & Publish to Buffer v6.2.5
6.2.5 6.2.4 6.2.3 6.2.2 6.2.1 6.2.0 6.1.2 6.1.1 6.1.0 6.0.9 6.0.8 6.0.7 6.0.6 6.0.5 6.0.4 6.0.3 6.0.2 6.0.1 6.0.0 3.8.1 3.8.2 3.8.3 3.8.4 3.8.5 3.8.6 All 126 releases
← All changes | lib/social/includes/class-install.php +9 -2 6.2.16.2.5 View file →
@@ -69,10 +69,12 @@
69 69
70 70 // Reschedule the cron events.
71 71 $this->base->get_class( 'cron' )->schedule_log_cleanup_event();
72 72 $this->base->get_class( 'cron' )->schedule_media_cleanup_event();
73 - $this->base->get_class( 'cron' )->schedule_refresh_token_event();
74 73
74 + // Unschedule cron events we no longer use.
75 + $this->base->get_class( 'cron' )->unschedule_refresh_token_event();
76 +
75 77 // Bail if settings already exist.
76 78 $settings = $this->base->get_class( 'settings' )->get_settings( 'post' );
77 79 if ( $settings !== false ) {
78 80 return;
@@ -114,9 +116,14 @@
114 116
115 117 // Reschedule the cron events.
116 118 $this->base->get_class( 'cron' )->reschedule_log_cleanup_event();
117 119 $this->base->get_class( 'cron' )->reschedule_media_cleanup_event();
118 - $this->base->get_class( 'cron' )->reschedule_refresh_token_event();
120 +
121 + // Unschedule cron events we no longer use.
122 + $this->base->get_class( 'cron' )->unschedule_refresh_token_event();
123 +
124 + // Create log table if it doesn't exist.
125 + $this->base->get_class( 'log' )->activate();
119 126
120 127 // Update the version number.
121 128 update_option( $this->base->plugin->name . '-version', $this->base->plugin->version );
122 129