PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.5
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.5
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 13.7.2 13.8.3 All 506 releases
← All changes | jetpack_vendor/automattic/jetpack-sync/src/class-defaults.php +163 -43 13.0.2 → 16.3-a.5 View file →
@@ -27,8 +27,9 @@
27 27 'avatar_default',
28 28 'avatar_rating',
29 29 'blog_charset',
30 30 'blog_public',
31 + 'wpcom_data_sharing_opt_out',
31 32 'blogdescription',
32 33 'blogname',
33 34 'carousel_background_color',
34 35 'carousel_display_comments',
@@ -76,20 +77,23 @@
76 77 'jetpack_autoupdate_translations',
77 78 'jetpack_available_modules',
78 79 'jetpack_comment_form_color_scheme',
79 80 'jetpack_comment_likes_enabled',
80 - 'jetpack_connection_active_plugins',
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',
93 + 'jetpack_social_notes_config',
90 94 'jetpack_social_settings',
91 - 'jetpack_social_autoconvert_images',
95 + 'jetpack_social_utm_settings',
92 96 'jetpack_sso_match_by_email',
93 97 'jetpack_sso_require_two_step',
94 98 'jetpack_sync_non_blocking', // is non-blocking Jetpack Sync flow enabled.
95 99 'jetpack_sync_non_public_post_stati',
@@ -98,8 +102,9 @@
98 102 'jetpack_sync_settings_post_types_blacklist',
99 103 'jetpack_sync_settings_taxonomies_blacklist',
100 104 'jetpack_sync_settings_dedicated_sync_enabled', // is Dedicated Sync flow enabled.
101 105 'jetpack_sync_settings_custom_queue_table_enabled', // is custom queue table enabled.
106 + 'jetpack_sync_settings_wpcom_rest_api_enabled', // is wpcom rest api enabled.
102 107 'jetpack_testimonial',
103 108 'jetpack_testimonial_posts_per_page',
104 109 'jetpack_wga',
105 110 'large_size_h',
@@ -162,11 +167,15 @@
162 167 'uninstall_plugins',
163 168 'uploads_use_yearmonth_folders',
164 169 'users_can_register',
165 170 'verification_services_codes',
171 + 'videopress_auto_subtitles_disabled',
172 + 'videopress_player_preload_disabled',
173 + 'videopress_playlist_index',
166 174 'videopress_private_enabled_for_site',
167 175 'wordads_ccpa_enabled',
168 176 'wordads_ccpa_privacy_policy_url',
177 + 'wordads_cmp_enabled',
169 178 'wordads_custom_adstxt',
170 179 'wordads_custom_adstxt_enabled',
171 180 'wordads_display_archive',
172 181 'wordads_display_front_page',
@@ -172,15 +181,24 @@
172 181 'wordads_display_front_page',
173 182 'wordads_display_page',
174 183 'wordads_display_post',
175 184 'wordads_second_belowpost',
185 + 'wordads_inline_enabled',
176 186 'woocommerce_custom_orders_table_enabled',
177 187 'wp_mobile_app_promos',
178 188 'wp_mobile_excerpt',
179 189 'wp_mobile_featured_images',
180 190 'wp_page_for_privacy_policy',
191 + 'wpcom_ai_launchpad_completed',
192 + 'wpcom_ai_launchpad_dismissed',
193 + 'wpcom_ai_launchpad_enabled',
181 194 'wpcom_ai_site_prompt',
195 + 'wpcom_classic_early_release',
196 + 'wpcom_newsletter_send_default',
182 197 'wpcom_featured_image_in_email',
198 + 'jetpack_gravatar_in_email',
199 + 'jetpack_author_in_email',
200 + 'jetpack_post_date_in_email',
183 201 'wpcom_gifting_subscription',
184 202 'wpcom_is_fse_activated',
185 203 'wpcom_legacy_contact',
186 204 'wpcom_locked_mode',
@@ -190,9 +208,22 @@
190 208 'wpcom_publish_posts_with_markdown',
191 209 'wpcom_reader_views_enabled',
192 210 'wpcom_site_setup',
193 211 'wpcom_subscription_emails_use_excerpt',
212 + 'jetpack_subscriptions_reply_to',
213 + 'jetpack_subscriptions_from_name',
194 214 'jetpack_verbum_subscription_modal',
215 + 'jetpack_blocks_disabled',
216 + 'jetpack_newsletters_publishing_default_frequency',
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',
195 226 );
196 227
197 228 /**
198 229 * Return options whitelist filtered.
@@ -301,39 +332,44 @@
301 332 *
302 333 * @var array Default whitelist of callables.
303 334 */
304 335 public static $default_callable_whitelist = array(
305 - 'get_loaded_extensions' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_loaded_extensions' ),
306 - 'get_plugins' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_plugins' ),
307 - 'get_themes' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_themes' ),
308 - 'get_plugins_action_links' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_plugins_action_links' ),
309 - 'has_file_system_write_access' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'file_system_write_access' ),
310 - 'home_url' => array( 'Automattic\\Jetpack\\Connection\\Urls', 'home_url' ),
311 - 'hosting_provider' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_hosting_provider' ),
312 - 'is_fse_theme' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_is_fse_theme' ),
313 - 'is_main_network' => array( __CLASS__, 'is_multi_network' ),
314 - 'is_multi_site' => 'is_multisite',
315 - 'is_version_controlled' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'is_version_controlled' ),
316 - 'locale' => 'get_locale',
317 - 'main_network_site' => array( 'Automattic\\Jetpack\\Connection\\Urls', 'main_network_site_url' ),
318 - 'main_network_site_wpcom_id' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'main_network_site_wpcom_id' ),
319 - 'paused_plugins' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_paused_plugins' ),
320 - 'paused_themes' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_paused_themes' ),
321 - 'post_type_features' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_post_type_features' ),
322 - 'post_types' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_post_types' ),
323 - 'rest_api_allowed_post_types' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'rest_api_allowed_post_types' ),
324 - 'rest_api_allowed_public_metadata' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'rest_api_allowed_public_metadata' ),
325 - 'roles' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'roles' ),
326 - 'shortcodes' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_shortcodes' ),
327 - 'site_icon_url' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'site_icon_url' ),
328 - 'site_url' => array( 'Automattic\\Jetpack\\Connection\\Urls', 'site_url' ),
329 - 'taxonomies' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_taxonomies' ),
330 - 'theme_support' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_theme_support' ),
331 - 'timezone' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_timezone' ),
332 - 'wp_get_environment_type' => 'wp_get_environment_type',
333 - 'wp_max_upload_size' => 'wp_max_upload_size',
334 - 'wp_version' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'wp_version' ),
335 - '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' ),
336 372 );
337 373
338 374 /**
339 375 * Array of post type attributes synced.
@@ -435,8 +471,16 @@
435 471 'wp_automatic',
436 472 'wp_log', // WP Logging Plugin.
437 473 'wpephpcompat_jobs',
438 474 'wprss_feed_item',
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.
439 483 );
440 484
441 485 /**
442 486 * Taxonomies that we're not syncing by default.
@@ -737,13 +781,17 @@
737 781 '_wp_attachment_image_alt',
738 782 '_wp_attachment_is_custom_background',
739 783 '_wp_attachment_is_custom_header',
740 784 '_wp_attachment_metadata',
785 + '_wp_old_date',
741 786 '_wp_page_template',
742 787 '_wp_trash_meta_comments_status',
743 788 '_wpas_feature_enabled',
789 + '_wpas_connection_overrides',
790 + '_wpas_customize_per_network',
744 791 '_wpas_mess',
745 792 '_wpas_options',
793 + '_jetpack_social_image_focal_point', // Publicize_Base::ATTACHMENT_IMAGE_FOCAL_POINT.
746 794 'advanced_seo_description', // Jetpack_SEO_Posts::DESCRIPTION_META_KEY.
747 795 'content_width',
748 796 'custom_css_add',
749 797 'custom_css_preprocessor',
@@ -755,8 +803,9 @@
755 803 'switch_like_status',
756 804 'videopress_guid',
757 805 'vimeo_poster_image',
758 806 '_jetpack_blogging_prompt_key',
807 + 'footnotes', // Core footnotes block
759 808 );
760 809
761 810 /**
762 811 * Get the post meta key whitelist.
@@ -786,8 +835,12 @@
786 835 'hc_avatar',
787 836 'hc_foreign_user_id',
788 837 'hc_post_as',
789 838 'hc_wpcom_id_sig',
839 + 'jetpack_comment_identity_avatar',
840 + 'jetpack_comment_identity_id',
841 + 'jetpack_comment_identity_provider',
842 + 'protocol',
790 843 );
791 844
792 845 /**
793 846 * Get the comment meta whitelist.
@@ -808,8 +861,34 @@
808 861 return apply_filters( 'jetpack_sync_comment_meta_whitelist', self::$comment_meta_whitelist );
809 862 }
810 863
811 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 + /**
812 891 * Default theme support whitelist.
813 892 *
814 893 * @todo move this to server? - these are theme support values
815 894 * that should be synced as jetpack_current_theme_supports_foo option values
@@ -835,8 +914,9 @@
835 914 'disable-layout-styles', // WP 6.1. Added via https://core.trac.wordpress.org/changeset/54159
836 915 'editor-color-palette',
837 916 'editor-font-sizes',
838 917 'editor-gradient-presets',
918 + 'editor-spacing-sizes',
839 919 'editor-style', // deprecated.
840 920 'editor-styles',
841 921 'html5',
842 922 'infinite-scroll',
@@ -1151,8 +1231,15 @@
1151 1231 */
1152 1232 public static $default_comment_meta_whitelist = array();
1153 1233
1154 1234 /**
1235 + * Default for sync actions blacklist.
1236 + *
1237 + * @var array Empty array.
1238 + */
1239 + public static $default_sync_actions_blacklist = array();
1240 +
1241 + /**
1155 1242 * Default for disabling sync across the site.
1156 1243 *
1157 1244 * @var int Bool-ish. Default to 0.
1158 1245 */
@@ -1262,46 +1349,63 @@
1262 1349 *
1263 1350 * @var array list of module names.
1264 1351 */
1265 1352 public static $default_full_sync_config = array(
1266 - 'comments' => 1,
1267 1353 'constants' => 1,
1268 1354 'functions' => 1,
1269 1355 'options' => 1,
1270 - 'posts' => 1,
1271 - 'term_relationships' => 1,
1272 1356 'terms' => 1,
1273 1357 'themes' => 1,
1358 + 'users' => 1,
1359 + 'posts' => 1,
1360 + 'comments' => 1,
1274 1361 'updates' => 1,
1275 - 'users' => 1,
1362 + 'term_relationships' => 1,
1276 1363 );
1277 1364
1278 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 + /**
1279 1375 * Default Full Sync max objects to send on a single request.
1280 1376 *
1281 1377 * @var array list of module => max.
1282 1378 */
1283 1379 public static $default_full_sync_limits = array(
1284 - 'comments' => array(
1380 + 'comments' => array(
1285 1381 'chunk_size' => 100,
1286 1382 'max_chunks' => 10,
1287 1383 ),
1288 - 'posts' => array(
1289 - 'chunk_size' => 100,
1384 + 'posts' => array(
1385 + 'chunk_size' => 500,
1290 1386 'max_chunks' => 1,
1291 1387 ),
1292 - 'term_relationships' => array(
1388 + 'term_relationships' => array(
1293 1389 'chunk_size' => 1000,
1294 1390 'max_chunks' => 10,
1295 1391 ),
1296 - 'terms' => array(
1392 + 'terms' => array(
1297 1393 'chunk_size' => 1000,
1298 1394 'max_chunks' => 10,
1299 1395 ),
1300 - 'users' => array(
1396 + 'users' => array(
1301 1397 'chunk_size' => 100,
1302 1398 'max_chunks' => 10,
1303 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 + ),
1304 1408 );
1305 1409
1306 1410 /**
1307 1411 * Default for enabling dedicated Sync flow.
@@ -1315,5 +1419,21 @@
1315 1419 *
1316 1420 * @var int Bool-ish. Default 0.
1317 1421 */
1318 1422 public static $default_custom_queue_table_enabled = 0;
1423 +
1424 + /**
1425 + * Default for enabling wpcom rest api for Sync.
1426 + *
1427 + * @var int Bool-ish. Default 1.
1428 + */
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 + );
1319 1439 }