| @@ 123-129 (lines=7) @@ | ||
| 120 | return (int) ceil( $count / self::ARRAY_CHUNK_SIZE ); |
|
| 121 | } |
|
| 122 | ||
| 123 | private function get_where_sql( $config ) { |
|
| 124 | if ( is_array( $config ) ) { |
|
| 125 | return 'comment_ID IN (' . implode( ',', array_map( 'intval', $config ) ) . ')'; |
|
| 126 | } |
|
| 127 | ||
| 128 | return null; |
|
| 129 | } |
|
| 130 | ||
| 131 | public function get_full_sync_actions() { |
|
| 132 | return array( 'jetpack_full_sync_comments' ); |
|
| @@ 38-44 (lines=7) @@ | ||
| 35 | 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 ); |
|
| 36 | } |
|
| 37 | ||
| 38 | private function get_where_sql( $config ) { |
|
| 39 | if ( is_array( $config ) ) { |
|
| 40 | return 'term_taxonomy_id IN (' . implode( ',', array_map( 'intval', $config ) ) . ')'; |
|
| 41 | } |
|
| 42 | ||
| 43 | return ''; |
|
| 44 | } |
|
| 45 | ||
| 46 | public function estimate_full_sync_actions( $config ) { |
|
| 47 | global $wpdb; |
|