Skip to content

Commit a9b9d20

Browse files
committed
fix: plugin activation schedules
1 parent 534d805 commit a9b9d20

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

posts-bridge/includes/class-posts-bridge.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ public static function activate() {
171171
}
172172

173173
Remote_Featured_Media::setup_default_thumbnail();
174-
Posts_Synchronizer::schedule();
174+
175+
$setting_data = get_option( 'posts-bridge_general', array() ) ?: array();
176+
Posts_Synchronizer::schedule( $setting_data );
175177

176178
$version = get_option( self::DB_VERSION );
177179
if ( false === $version ) {

0 commit comments

Comments
 (0)