PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.7
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.7
16.3 16.3-beta 16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 All 508 releases
← All changes | jetpack_vendor/automattic/jetpack-sync/src/class-defaults.php +103 -16 13.7.2 → 16.3-a.7 View file →
@@ -78,19 +78,22 @@
78 78 'jetpack_available_modules',
79 79 'jetpack_comment_form_color_scheme',
80 80 'jetpack_comment_likes_enabled',
81 81 'jetpack_excluded_extensions',
82 + 'jetpack_holiday_snow_enabled',
82 83 'jetpack_mailchimp',
83 84 'jetpack_options',
84 85 'jetpack_portfolio',
85 86 'jetpack_portfolio_posts_per_page',
87 + 'jetpack_premium_analytics_enabled',
86 88 'jetpack_protect_global_whitelist',
87 89 'jetpack_protect_key',
88 90 'jetpack_publicize_options',
89 91 'jetpack_relatedposts',
92 + 'jetpack_social_message_template',
90 93 'jetpack_social_notes_config',
91 94 'jetpack_social_settings',
92 - 'jetpack_social_autoconvert_images',
95 + 'jetpack_social_utm_settings',
93 96 'jetpack_sso_match_by_email',
94 97 'jetpack_sso_require_two_step',
95 98 'jetpack_sync_non_blocking', // is non-blocking Jetpack Sync flow enabled.
96 99 'jetpack_sync_non_public_post_stati',
@@ -164,8 +167,11 @@
164 167 'uninstall_plugins',
165 168 'uploads_use_yearmonth_folders',
166 169 'users_can_register',
167 170 'verification_services_codes',
171 + 'videopress_auto_subtitles_disabled',
172 + 'videopress_player_preload_disabled',
173 + 'videopress_playlist_index',
168 174 'videopress_private_enabled_for_site',
169 175 'wordads_ccpa_enabled',
170 176 'wordads_ccpa_privacy_policy_url',
171 177 'wordads_cmp_enabled',
@@ -181,10 +187,14 @@
181 187 'wp_mobile_app_promos',
182 188 'wp_mobile_excerpt',
183 189 'wp_mobile_featured_images',
184 190 'wp_page_for_privacy_policy',
191 + 'wpcom_ai_launchpad_completed',
192 + 'wpcom_ai_launchpad_dismissed',
193 + 'wpcom_ai_launchpad_enabled',
185 194 'wpcom_ai_site_prompt',
186 195 'wpcom_classic_early_release',
196 + 'wpcom_newsletter_send_default',
187 197 'wpcom_featured_image_in_email',
188 198 'jetpack_gravatar_in_email',
189 199 'jetpack_author_in_email',
190 200 'jetpack_post_date_in_email',
@@ -202,9 +212,8 @@
202 212 'jetpack_subscriptions_reply_to',
203 213 'jetpack_subscriptions_from_name',
204 214 'jetpack_verbum_subscription_modal',
205 215 'jetpack_blocks_disabled',
206 - 'jetpack_package_versions',
207 216 'jetpack_newsletters_publishing_default_frequency',
208 217 'jetpack_scheduled_plugins_update',
209 218 'jetpack_waf_automatic_rules',
210 219 'jetpack_waf_ip_allow_list',
@@ -355,8 +364,12 @@
355 364 'wp_max_upload_size' => 'wp_max_upload_size',
356 365 'wp_version' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'wp_version' ),
357 366 'active_modules' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_active_modules' ),
358 367 'jetpack_connection_active_plugins' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_jetpack_connection_active_plugins' ),
368 + 'jetpack_package_versions' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_jetpack_package_versions' ),
369 + 'jetpack_sync_active_modules' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_jetpack_sync_active_modules' ),
370 + // Carries the `blog_public` value, but reports -1 when the site is private.
371 + 'jetpack_site_visibility' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_site_visibility' ),
359 372 );
360 373
361 374 /**
362 375 * Array of post type attributes synced.
@@ -458,10 +471,16 @@
458 471 'wp_automatic',
459 472 'wp_log', // WP Logging Plugin.
460 473 'wpephpcompat_jobs',
461 474 'wprss_feed_item',
462 - 'memberships_coupon',
463 - 'memberships_gift',
475 + 'tribe-ea-record', // The Events Calendar Plugin - Store Event Aggregator record information.
476 + 'wphb_minify_group', // Hummingbird Plugin - Used internally to keep data about assets minification.
477 + 'bigcommerce_task', // BigCommerce Plugin - Store import queue.
478 + 'secupress_log_err404', // SecuPress Plugin - Log 404 pages
479 + 'iw_omnibus_price_log', // Omnibus Plugin - Log price changes.
480 + 'od_url_metrics', // Optimization Detective - Log URL metrics.
481 + 'ap_outbox', // ActivityPub Outbox; only used for broadcasting ActivityPub activity to followers.
482 + 'shop_order_placehold', // WooCommerce placeholder - Used to maintain compatibility and references when switching between WP Posts-based order storage and the newer HPOS tables.
464 483 );
465 484
466 485 /**
467 486 * Taxonomies that we're not syncing by default.
@@ -762,13 +781,17 @@
762 781 '_wp_attachment_image_alt',
763 782 '_wp_attachment_is_custom_background',
764 783 '_wp_attachment_is_custom_header',
765 784 '_wp_attachment_metadata',
785 + '_wp_old_date',
766 786 '_wp_page_template',
767 787 '_wp_trash_meta_comments_status',
768 788 '_wpas_feature_enabled',
789 + '_wpas_connection_overrides',
790 + '_wpas_customize_per_network',
769 791 '_wpas_mess',
770 792 '_wpas_options',
793 + '_jetpack_social_image_focal_point', // Publicize_Base::ATTACHMENT_IMAGE_FOCAL_POINT.
771 794 'advanced_seo_description', // Jetpack_SEO_Posts::DESCRIPTION_META_KEY.
772 795 'content_width',
773 796 'custom_css_add',
774 797 'custom_css_preprocessor',
@@ -780,8 +803,9 @@
780 803 'switch_like_status',
781 804 'videopress_guid',
782 805 'vimeo_poster_image',
783 806 '_jetpack_blogging_prompt_key',
807 + 'footnotes', // Core footnotes block
784 808 );
785 809
786 810 /**
787 811 * Get the post meta key whitelist.
@@ -811,8 +835,12 @@
811 835 'hc_avatar',
812 836 'hc_foreign_user_id',
813 837 'hc_post_as',
814 838 'hc_wpcom_id_sig',
839 + 'jetpack_comment_identity_avatar',
840 + 'jetpack_comment_identity_id',
841 + 'jetpack_comment_identity_provider',
842 + 'protocol',
815 843 );
816 844
817 845 /**
818 846 * Get the comment meta whitelist.
@@ -833,8 +861,34 @@
833 861 return apply_filters( 'jetpack_sync_comment_meta_whitelist', self::$comment_meta_whitelist );
834 862 }
835 863
836 864 /**
865 + * Comment types whitelist.
866 + *
867 + * @var array Comment types that are synced.
868 + */
869 + public static $comment_types_whitelist = array( '', 'comment', 'trackback', 'pingback', 'review', 'note' );
870 +
871 + /**
872 + * Get the comment types whitelist.
873 + *
874 + * @return array
875 + */
876 + public static function get_comment_types_whitelist() {
877 + /**
878 + * Comment types present in this list will be synced to WordPress.com.
879 + *
880 + * @module sync
881 + *
882 + * @since 1.6.3
883 + * @since-jetpack 7.6.0
884 + *
885 + * @param array A list of comment types.
886 + */
887 + return apply_filters( 'jetpack_sync_whitelisted_comment_types', self::$comment_types_whitelist );
888 + }
889 +
890 + /**
837 891 * Default theme support whitelist.
838 892 *
839 893 * @todo move this to server? - these are theme support values
840 894 * that should be synced as jetpack_current_theme_supports_foo option values
@@ -1177,8 +1231,15 @@
1177 1231 */
1178 1232 public static $default_comment_meta_whitelist = array();
1179 1233
1180 1234 /**
1235 + * Default for sync actions blacklist.
1236 + *
1237 + * @var array Empty array.
1238 + */
1239 + public static $default_sync_actions_blacklist = array();
1240 +
1241 + /**
1181 1242 * Default for disabling sync across the site.
1182 1243 *
1183 1244 * @var int Bool-ish. Default to 0.
1184 1245 */
@@ -1288,46 +1349,63 @@
1288 1349 *
1289 1350 * @var array list of module names.
1290 1351 */
1291 1352 public static $default_full_sync_config = array(
1292 - 'comments' => 1,
1293 1353 'constants' => 1,
1294 1354 'functions' => 1,
1295 1355 'options' => 1,
1296 - 'posts' => 1,
1297 - 'term_relationships' => 1,
1298 1356 'terms' => 1,
1299 1357 'themes' => 1,
1358 + 'users' => 1,
1359 + 'posts' => 1,
1360 + 'comments' => 1,
1300 1361 'updates' => 1,
1301 - 'users' => 1,
1362 + 'term_relationships' => 1,
1302 1363 );
1303 1364
1304 1365 /**
1366 + * Default Full Sync limits for one module.
1367 + *
1368 + * @var array list of limits.
1369 + */
1370 + public static $default_full_sync_limits_per_module = array(
1371 + 'chunk_size' => 100,
1372 + 'max_chunks' => 10,
1373 + );
1374 + /**
1305 1375 * Default Full Sync max objects to send on a single request.
1306 1376 *
1307 1377 * @var array list of module => max.
1308 1378 */
1309 1379 public static $default_full_sync_limits = array(
1310 - 'comments' => array(
1380 + 'comments' => array(
1311 1381 'chunk_size' => 100,
1312 1382 'max_chunks' => 10,
1313 1383 ),
1314 - 'posts' => array(
1315 - 'chunk_size' => 100,
1384 + 'posts' => array(
1385 + 'chunk_size' => 500,
1316 1386 'max_chunks' => 1,
1317 1387 ),
1318 - 'term_relationships' => array(
1388 + 'term_relationships' => array(
1319 1389 'chunk_size' => 1000,
1320 1390 'max_chunks' => 10,
1321 1391 ),
1322 - 'terms' => array(
1392 + 'terms' => array(
1323 1393 'chunk_size' => 1000,
1324 1394 'max_chunks' => 10,
1325 1395 ),
1326 - 'users' => array(
1396 + 'users' => array(
1327 1397 'chunk_size' => 100,
1328 1398 'max_chunks' => 10,
1329 1399 ),
1400 + 'woocommerce' => array(
1401 + 'chunk_size' => 100,
1402 + 'max_chunks' => 10,
1403 + ),
1404 + 'woocommerce_hpos_orders' => array(
1405 + 'chunk_size' => 100,
1406 + 'max_chunks' => 10,
1407 + ),
1330 1408 );
1331 1409
1332 1410 /**
1333 1411 * Default for enabling dedicated Sync flow.
@@ -1345,8 +1423,17 @@
1345 1423
1346 1424 /**
1347 1425 * Default for enabling wpcom rest api for Sync.
1348 1426 *
1349 - * @var int Bool-ish. Default 0.
1427 + * @var int Bool-ish. Default 1.
1350 1428 */
1351 - public static $default_wpcom_rest_api_enabled = 0;
1429 + public static $default_wpcom_rest_api_enabled = 1;
1430 +
1431 + /**
1432 + * A list of 'jetpack_options' specific keys we want to ignore.
1433 + *
1434 + * @var array
1435 + */
1436 + public static $jetpack_options_blacklist = array(
1437 + 'last_heartbeat',
1438 + );
1352 1439 }