diff options
Diffstat (limited to 'plugins/jetpack/sync/class.jetpack-sync-module-terms.php')
-rw-r--r-- | plugins/jetpack/sync/class.jetpack-sync-module-terms.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/jetpack/sync/class.jetpack-sync-module-terms.php b/plugins/jetpack/sync/class.jetpack-sync-module-terms.php index 427e13c8..13b185b4 100644 --- a/plugins/jetpack/sync/class.jetpack-sync-module-terms.php +++ b/plugins/jetpack/sync/class.jetpack-sync-module-terms.php @@ -25,9 +25,11 @@ class Jetpack_Sync_Module_Terms extends Jetpack_Sync_Module { add_filter( 'jetpack_sync_before_send_jetpack_full_sync_terms', array( $this, 'expand_term_ids' ) ); } - function enqueue_full_sync_actions( $config ) { + function enqueue_full_sync_actions( $config, $max_items_to_enqueue, $state ) { global $wpdb; + // TODO: process state + $taxonomies = get_taxonomies(); $total_chunks_counter = 0; foreach ( $taxonomies as $taxonomy ) { @@ -43,7 +45,7 @@ class Jetpack_Sync_Module_Terms extends Jetpack_Sync_Module { } } - return $total_chunks_counter; + return array( $total_chunks_counter, true ); } function estimate_full_sync_actions( $config ) { |