@@ 195-206 (lines=12) @@ | ||
192 | return (int) ceil( $count / self::ARRAY_CHUNK_SIZE ); |
|
193 | } |
|
194 | ||
195 | private function get_where_sql( $config ) { |
|
196 | global $wpdb; |
|
197 | ||
198 | $query = "meta_key = '{$wpdb->prefix}capabilities'"; |
|
199 | ||
200 | // config is a list of user IDs to sync |
|
201 | if ( is_array( $config ) ) { |
|
202 | $query .= ' AND user_id IN (' . implode( ',', array_map( 'intval', $config ) ) . ')'; |
|
203 | } |
|
204 | ||
205 | return $query; |
|
206 | } |
|
207 | ||
208 | function get_full_sync_actions() { |
|
209 | return array( 'jetpack_full_sync_users' ); |
@@ 60-69 (lines=10) @@ | ||
57 | return (int) ceil( $count / self::ARRAY_CHUNK_SIZE ); |
|
58 | } |
|
59 | ||
60 | private function get_where_sql( $config ) { |
|
61 | $where_sql = Jetpack_Sync_Settings::get_blacklisted_post_types_sql(); |
|
62 | ||
63 | // config is a list of post IDs to sync |
|
64 | if ( is_array( $config ) ) { |
|
65 | $where_sql .= ' AND ID IN (' . implode( ',', array_map( 'intval', $config ) ) . ')'; |
|
66 | } |
|
67 | ||
68 | return $where_sql; |
|
69 | } |
|
70 | ||
71 | function get_full_sync_actions() { |
|
72 | return array( 'jetpack_full_sync_posts' ); |