summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2016-11-30 16:22:57 -0500
committerAnthony G. Basile <blueness@gentoo.org>2016-11-30 16:22:57 -0500
commitfbf8cf39f7ec35489332158cb2f73ea535279e5b (patch)
treeb8025a3b964e60077492449c0e35bf675bcd6939 /plugins/jetpack/sync/class.jetpack-sync-module-terms.php
parentUpdate plugin openid to 3.4.2 (diff)
downloadblogs-gentoo-fbf8cf39f7ec35489332158cb2f73ea535279e5b.tar.gz
blogs-gentoo-fbf8cf39f7ec35489332158cb2f73ea535279e5b.tar.bz2
blogs-gentoo-fbf8cf39f7ec35489332158cb2f73ea535279e5b.zip
Update plugin jetpack to 4.4.1
Diffstat (limited to 'plugins/jetpack/sync/class.jetpack-sync-module-terms.php')
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-module-terms.php6
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 ) {