@@ 119-125 (lines=7) @@ | ||
116 | return (int) ceil( $count / self::ARRAY_CHUNK_SIZE ); |
|
117 | } |
|
118 | ||
119 | private function get_where_sql( $config ) { |
|
120 | if ( is_array( $config ) ) { |
|
121 | return 'comment_ID IN (' . implode( ',', array_map( 'intval', $config ) ) . ')'; |
|
122 | } |
|
123 | ||
124 | return null; |
|
125 | } |
|
126 | ||
127 | public function get_full_sync_actions() { |
|
128 | return array( 'jetpack_full_sync_comments' ); |
@@ 34-40 (lines=7) @@ | ||
31 | return $this->enqueue_all_ids_as_action( 'jetpack_full_sync_terms', $wpdb->term_taxonomy, 'term_taxonomy_id', $this->get_where_sql( $config ), $max_items_to_enqueue, $state ); |
|
32 | } |
|
33 | ||
34 | private function get_where_sql( $config ) { |
|
35 | if ( is_array( $config ) ) { |
|
36 | return 'term_taxonomy_id IN (' . implode( ',', array_map( 'intval', $config ) ) . ')'; |
|
37 | } |
|
38 | ||
39 | return ''; |
|
40 | } |
|
41 | ||
42 | public function estimate_full_sync_actions( $config ) { |
|
43 | global $wpdb; |