@@ 407-418 (lines=12) @@ | ||
404 | return (int) ceil( $count / self::ARRAY_CHUNK_SIZE ); |
|
405 | } |
|
406 | ||
407 | private function get_where_sql( $config ) { |
|
408 | global $wpdb; |
|
409 | ||
410 | $query = "meta_key = '{$wpdb->prefix}capabilities'"; |
|
411 | ||
412 | // config is a list of user IDs to sync |
|
413 | if ( is_array( $config ) ) { |
|
414 | $query .= ' AND user_id IN (' . implode( ',', array_map( 'intval', $config ) ) . ')'; |
|
415 | } |
|
416 | ||
417 | return $query; |
|
418 | } |
|
419 | ||
420 | function get_full_sync_actions() { |
|
421 | 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 = 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' ); |