PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.5
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.5
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 +149 -48 13.4.5 → 16.3-a.5 View file →
@@ -77,21 +77,23 @@
77 77 'jetpack_autoupdate_translations',
78 78 'jetpack_available_modules',
79 79 'jetpack_comment_form_color_scheme',
80 80 'jetpack_comment_likes_enabled',
81 - 'jetpack_connection_active_plugins',
82 81 'jetpack_excluded_extensions',
82 + 'jetpack_holiday_snow_enabled',
83 83 'jetpack_mailchimp',
84 84 'jetpack_options',
85 85 'jetpack_portfolio',
86 86 'jetpack_portfolio_posts_per_page',
87 + 'jetpack_premium_analytics_enabled',
87 88 'jetpack_protect_global_whitelist',
88 89 'jetpack_protect_key',
89 90 'jetpack_publicize_options',
90 91 'jetpack_relatedposts',
92 + 'jetpack_social_message_template',
91 93 'jetpack_social_notes_config',
92 94 'jetpack_social_settings',
93 - 'jetpack_social_autoconvert_images',
95 + 'jetpack_social_utm_settings',
94 96 'jetpack_sso_match_by_email',
95 97 'jetpack_sso_require_two_step',
96 98 'jetpack_sync_non_blocking', // is non-blocking Jetpack Sync flow enabled.
97 99 'jetpack_sync_non_public_post_stati',
@@ -165,8 +167,11 @@
165 167 'uninstall_plugins',
166 168 'uploads_use_yearmonth_folders',
167 169 'users_can_register',
168 170 'verification_services_codes',
171 + 'videopress_auto_subtitles_disabled',
172 + 'videopress_player_preload_disabled',
173 + 'videopress_playlist_index',
169 174 'videopress_private_enabled_for_site',
170 175 'wordads_ccpa_enabled',
171 176 'wordads_ccpa_privacy_policy_url',
172 177 'wordads_cmp_enabled',
@@ -176,16 +181,24 @@
176 181 'wordads_display_front_page',
177 182 'wordads_display_page',
178 183 'wordads_display_post',
179 184 'wordads_second_belowpost',
185 + 'wordads_inline_enabled',
180 186 'woocommerce_custom_orders_table_enabled',
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',
198 + 'jetpack_gravatar_in_email',
199 + 'jetpack_author_in_email',
200 + 'jetpack_post_date_in_email',
188 201 'wpcom_gifting_subscription',
189 202 'wpcom_is_fse_activated',
190 203 'wpcom_legacy_contact',
191 204 'wpcom_locked_mode',
@@ -196,13 +209,21 @@
196 209 'wpcom_reader_views_enabled',
197 210 'wpcom_site_setup',
198 211 'wpcom_subscription_emails_use_excerpt',
199 212 'jetpack_subscriptions_reply_to',
213 + 'jetpack_subscriptions_from_name',
200 214 'jetpack_verbum_subscription_modal',
201 215 'jetpack_blocks_disabled',
202 - 'jetpack_package_versions',
203 216 'jetpack_newsletters_publishing_default_frequency',
204 217 'jetpack_scheduled_plugins_update',
218 + 'jetpack_waf_automatic_rules',
219 + 'jetpack_waf_ip_allow_list',
220 + 'jetpack_waf_ip_allow_list_enabled',
221 + 'jetpack_waf_ip_block_list',
222 + 'jetpack_waf_ip_block_list_enabled',
223 + 'jetpack_waf_share_data',
224 + 'jetpack_waf_share_debug_data',
225 + 'jetpack_waf_automatic_rules_last_updated_timestamp',
205 226 );
206 227
207 228 /**
208 229 * Return options whitelist filtered.
@@ -311,39 +332,44 @@
311 332 *
312 333 * @var array Default whitelist of callables.
313 334 */
314 335 public static $default_callable_whitelist = array(
315 - 'get_loaded_extensions' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_loaded_extensions' ),
316 - 'get_plugins' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_plugins' ),
317 - 'get_themes' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_themes' ),
318 - 'get_plugins_action_links' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_plugins_action_links' ),
319 - 'has_file_system_write_access' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'file_system_write_access' ),
320 - 'home_url' => array( 'Automattic\\Jetpack\\Connection\\Urls', 'home_url' ),
321 - 'hosting_provider' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_hosting_provider' ),
322 - 'is_fse_theme' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_is_fse_theme' ),
323 - 'is_main_network' => array( __CLASS__, 'is_multi_network' ),
324 - 'is_multi_site' => 'is_multisite',
325 - 'is_version_controlled' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'is_version_controlled' ),
326 - 'locale' => 'get_locale',
327 - 'main_network_site' => array( 'Automattic\\Jetpack\\Connection\\Urls', 'main_network_site_url' ),
328 - 'main_network_site_wpcom_id' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'main_network_site_wpcom_id' ),
329 - 'paused_plugins' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_paused_plugins' ),
330 - 'paused_themes' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_paused_themes' ),
331 - 'post_type_features' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_post_type_features' ),
332 - 'post_types' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_post_types' ),
333 - 'rest_api_allowed_post_types' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'rest_api_allowed_post_types' ),
334 - 'rest_api_allowed_public_metadata' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'rest_api_allowed_public_metadata' ),
335 - 'roles' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'roles' ),
336 - 'shortcodes' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_shortcodes' ),
337 - 'site_icon_url' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'site_icon_url' ),
338 - 'site_url' => array( 'Automattic\\Jetpack\\Connection\\Urls', 'site_url' ),
339 - 'taxonomies' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_taxonomies' ),
340 - 'theme_support' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_theme_support' ),
341 - 'timezone' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_timezone' ),
342 - 'wp_get_environment_type' => 'wp_get_environment_type',
343 - 'wp_max_upload_size' => 'wp_max_upload_size',
344 - 'wp_version' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'wp_version' ),
345 - 'active_modules' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_active_modules' ),
336 + 'get_loaded_extensions' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_loaded_extensions' ),
337 + 'get_plugins' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_plugins' ),
338 + 'get_themes' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_themes' ),
339 + 'get_plugins_action_links' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_plugins_action_links' ),
340 + 'has_file_system_write_access' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'file_system_write_access' ),
341 + 'home_url' => array( 'Automattic\\Jetpack\\Connection\\Urls', 'home_url' ),
342 + 'hosting_provider' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_hosting_provider' ),
343 + 'is_fse_theme' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_is_fse_theme' ),
344 + 'is_main_network' => array( __CLASS__, 'is_multi_network' ),
345 + 'is_multi_site' => 'is_multisite',
346 + 'is_version_controlled' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'is_version_controlled' ),
347 + 'locale' => 'get_locale',
348 + 'main_network_site' => array( 'Automattic\\Jetpack\\Connection\\Urls', 'main_network_site_url' ),
349 + 'main_network_site_wpcom_id' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'main_network_site_wpcom_id' ),
350 + 'paused_plugins' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_paused_plugins' ),
351 + 'paused_themes' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_paused_themes' ),
352 + 'post_type_features' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_post_type_features' ),
353 + 'post_types' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_post_types' ),
354 + 'rest_api_allowed_post_types' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'rest_api_allowed_post_types' ),
355 + 'rest_api_allowed_public_metadata' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'rest_api_allowed_public_metadata' ),
356 + 'roles' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'roles' ),
357 + 'shortcodes' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_shortcodes' ),
358 + 'site_icon_url' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'site_icon_url' ),
359 + 'site_url' => array( 'Automattic\\Jetpack\\Connection\\Urls', 'site_url' ),
360 + 'taxonomies' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_taxonomies' ),
361 + 'theme_support' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_theme_support' ),
362 + 'timezone' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_timezone' ),
363 + 'wp_get_environment_type' => 'wp_get_environment_type',
364 + 'wp_max_upload_size' => 'wp_max_upload_size',
365 + 'wp_version' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'wp_version' ),
366 + 'active_modules' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_active_modules' ),
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' ),
346 372 );
347 373
348 374 /**
349 375 * Array of post type attributes synced.
@@ -445,10 +471,16 @@
445 471 'wp_automatic',
446 472 'wp_log', // WP Logging Plugin.
447 473 'wpephpcompat_jobs',
448 474 'wprss_feed_item',
449 - 'memberships_coupon',
450 - '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.
451 483 );
452 484
453 485 /**
454 486 * Taxonomies that we're not syncing by default.
@@ -749,13 +781,17 @@
749 781 '_wp_attachment_image_alt',
750 782 '_wp_attachment_is_custom_background',
751 783 '_wp_attachment_is_custom_header',
752 784 '_wp_attachment_metadata',
785 + '_wp_old_date',
753 786 '_wp_page_template',
754 787 '_wp_trash_meta_comments_status',
755 788 '_wpas_feature_enabled',
789 + '_wpas_connection_overrides',
790 + '_wpas_customize_per_network',
756 791 '_wpas_mess',
757 792 '_wpas_options',
793 + '_jetpack_social_image_focal_point', // Publicize_Base::ATTACHMENT_IMAGE_FOCAL_POINT.
758 794 'advanced_seo_description', // Jetpack_SEO_Posts::DESCRIPTION_META_KEY.
759 795 'content_width',
760 796 'custom_css_add',
761 797 'custom_css_preprocessor',
@@ -767,8 +803,9 @@
767 803 'switch_like_status',
768 804 'videopress_guid',
769 805 'vimeo_poster_image',
770 806 '_jetpack_blogging_prompt_key',
807 + 'footnotes', // Core footnotes block
771 808 );
772 809
773 810 /**
774 811 * Get the post meta key whitelist.
@@ -798,8 +835,12 @@
798 835 'hc_avatar',
799 836 'hc_foreign_user_id',
800 837 'hc_post_as',
801 838 'hc_wpcom_id_sig',
839 + 'jetpack_comment_identity_avatar',
840 + 'jetpack_comment_identity_id',
841 + 'jetpack_comment_identity_provider',
842 + 'protocol',
802 843 );
803 844
804 845 /**
805 846 * Get the comment meta whitelist.
@@ -820,8 +861,34 @@
820 861 return apply_filters( 'jetpack_sync_comment_meta_whitelist', self::$comment_meta_whitelist );
821 862 }
822 863
823 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 + /**
824 891 * Default theme support whitelist.
825 892 *
826 893 * @todo move this to server? - these are theme support values
827 894 * that should be synced as jetpack_current_theme_supports_foo option values
@@ -847,8 +914,9 @@
847 914 'disable-layout-styles', // WP 6.1. Added via https://core.trac.wordpress.org/changeset/54159
848 915 'editor-color-palette',
849 916 'editor-font-sizes',
850 917 'editor-gradient-presets',
918 + 'editor-spacing-sizes',
851 919 'editor-style', // deprecated.
852 920 'editor-styles',
853 921 'html5',
854 922 'infinite-scroll',
@@ -1163,8 +1231,15 @@
1163 1231 */
1164 1232 public static $default_comment_meta_whitelist = array();
1165 1233
1166 1234 /**
1235 + * Default for sync actions blacklist.
1236 + *
1237 + * @var array Empty array.
1238 + */
1239 + public static $default_sync_actions_blacklist = array();
1240 +
1241 + /**
1167 1242 * Default for disabling sync across the site.
1168 1243 *
1169 1244 * @var int Bool-ish. Default to 0.
1170 1245 */
@@ -1274,46 +1349,63 @@
1274 1349 *
1275 1350 * @var array list of module names.
1276 1351 */
1277 1352 public static $default_full_sync_config = array(
1278 - 'comments' => 1,
1279 1353 'constants' => 1,
1280 1354 'functions' => 1,
1281 1355 'options' => 1,
1282 - 'posts' => 1,
1283 - 'term_relationships' => 1,
1284 1356 'terms' => 1,
1285 1357 'themes' => 1,
1358 + 'users' => 1,
1359 + 'posts' => 1,
1360 + 'comments' => 1,
1286 1361 'updates' => 1,
1287 - 'users' => 1,
1362 + 'term_relationships' => 1,
1288 1363 );
1289 1364
1290 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 + /**
1291 1375 * Default Full Sync max objects to send on a single request.
1292 1376 *
1293 1377 * @var array list of module => max.
1294 1378 */
1295 1379 public static $default_full_sync_limits = array(
1296 - 'comments' => array(
1380 + 'comments' => array(
1297 1381 'chunk_size' => 100,
1298 1382 'max_chunks' => 10,
1299 1383 ),
1300 - 'posts' => array(
1301 - 'chunk_size' => 100,
1384 + 'posts' => array(
1385 + 'chunk_size' => 500,
1302 1386 'max_chunks' => 1,
1303 1387 ),
1304 - 'term_relationships' => array(
1388 + 'term_relationships' => array(
1305 1389 'chunk_size' => 1000,
1306 1390 'max_chunks' => 10,
1307 1391 ),
1308 - 'terms' => array(
1392 + 'terms' => array(
1309 1393 'chunk_size' => 1000,
1310 1394 'max_chunks' => 10,
1311 1395 ),
1312 - 'users' => array(
1396 + 'users' => array(
1313 1397 'chunk_size' => 100,
1314 1398 'max_chunks' => 10,
1315 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 + ),
1316 1408 );
1317 1409
1318 1410 /**
1319 1411 * Default for enabling dedicated Sync flow.
@@ -1331,8 +1423,17 @@
1331 1423
1332 1424 /**
1333 1425 * Default for enabling wpcom rest api for Sync.
1334 1426 *
1335 - * @var int Bool-ish. Default 0.
1427 + * @var int Bool-ish. Default 1.
1336 1428 */
1337 - 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 + );
1338 1439 }