@@ 406-417 (lines=12) @@ | ||
403 | return (int) ceil( $count / self::ARRAY_CHUNK_SIZE ); |
|
404 | } |
|
405 | ||
406 | private function get_where_sql( $config ) { |
|
407 | global $wpdb; |
|
408 | ||
409 | $query = "meta_key = '{$wpdb->prefix}capabilities'"; |
|
410 | ||
411 | // config is a list of user IDs to sync |
|
412 | if ( is_array( $config ) ) { |
|
413 | $query .= ' AND user_id IN (' . implode( ',', array_map( 'intval', $config ) ) . ')'; |
|
414 | } |
|
415 | ||
416 | return $query; |
|
417 | } |
|
418 | ||
419 | function get_full_sync_actions() { |
|
420 | return array( 'jetpack_full_sync_users' ); |
@@ 96-105 (lines=10) @@ | ||
93 | return (int) ceil( $count / self::ARRAY_CHUNK_SIZE ); |
|
94 | } |
|
95 | ||
96 | private function get_where_sql( $config ) { |
|
97 | $where_sql = \Jetpack_Sync_Settings::get_blacklisted_post_types_sql(); |
|
98 | ||
99 | // config is a list of post IDs to sync |
|
100 | if ( is_array( $config ) ) { |
|
101 | $where_sql .= ' AND ID IN (' . implode( ',', array_map( 'intval', $config ) ) . ')'; |
|
102 | } |
|
103 | ||
104 | return $where_sql; |
|
105 | } |
|
106 | ||
107 | function get_full_sync_actions() { |
|
108 | return array( 'jetpack_full_sync_posts' ); |