PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.7
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.7
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 +184 -45 12.2.3 → 16.3-a.7 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',
@@ -62,9 +63,9 @@
62 63 'highlander_comment_form_prompt',
63 64 'image_default_link_type',
64 65 'infinite_scroll',
65 66 'infinite_scroll_google_analytics',
66 - 'jetpack-memberships-connected-account-id',
67 + 'jetpack-memberships-has-connected-account',
67 68 'jetpack-twitter-cards-site-tag',
68 69 'jetpack_activated',
69 70 'jetpack_allowed_xsite_search_ids',
70 71 'jetpack_api_cache_enabled',
@@ -76,18 +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',
94 + 'jetpack_social_settings',
95 + 'jetpack_social_utm_settings',
90 96 'jetpack_sso_match_by_email',
91 97 'jetpack_sso_require_two_step',
92 98 'jetpack_sync_non_blocking', // is non-blocking Jetpack Sync flow enabled.
93 99 'jetpack_sync_non_public_post_stati',
@@ -95,8 +101,10 @@
95 101 'jetpack_sync_settings_post_meta_whitelist',
96 102 'jetpack_sync_settings_post_types_blacklist',
97 103 'jetpack_sync_settings_taxonomies_blacklist',
98 104 'jetpack_sync_settings_dedicated_sync_enabled', // is Dedicated Sync flow enabled.
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.
99 107 'jetpack_testimonial',
100 108 'jetpack_testimonial_posts_per_page',
101 109 'jetpack_wga',
102 110 'large_size_h',
@@ -141,8 +149,9 @@
141 149 'start_of_week',
142 150 'stats_options',
143 151 'stb_enabled',
144 152 'stc_enabled',
153 + 'sm_enabled',
145 154 'sticky_posts',
146 155 'stylesheet',
147 156 'subscription_options',
148 157 'tag_base',
@@ -158,10 +167,15 @@
158 167 'uninstall_plugins',
159 168 'uploads_use_yearmonth_folders',
160 169 'users_can_register',
161 170 'verification_services_codes',
171 + 'videopress_auto_subtitles_disabled',
172 + 'videopress_player_preload_disabled',
173 + 'videopress_playlist_index',
174 + 'videopress_private_enabled_for_site',
162 175 'wordads_ccpa_enabled',
163 176 'wordads_ccpa_privacy_policy_url',
177 + 'wordads_cmp_enabled',
164 178 'wordads_custom_adstxt',
165 179 'wordads_custom_adstxt_enabled',
166 180 'wordads_display_archive',
167 181 'wordads_display_front_page',
@@ -167,20 +181,49 @@
167 181 'wordads_display_front_page',
168 182 'wordads_display_page',
169 183 'wordads_display_post',
170 184 'wordads_second_belowpost',
185 + 'wordads_inline_enabled',
186 + 'woocommerce_custom_orders_table_enabled',
171 187 'wp_mobile_app_promos',
172 188 'wp_mobile_excerpt',
173 189 'wp_mobile_featured_images',
174 190 'wp_page_for_privacy_policy',
191 + 'wpcom_ai_launchpad_completed',
192 + 'wpcom_ai_launchpad_dismissed',
193 + 'wpcom_ai_launchpad_enabled',
194 + 'wpcom_ai_site_prompt',
195 + 'wpcom_classic_early_release',
196 + 'wpcom_newsletter_send_default',
175 197 'wpcom_featured_image_in_email',
198 + 'jetpack_gravatar_in_email',
199 + 'jetpack_author_in_email',
200 + 'jetpack_post_date_in_email',
201 + 'wpcom_gifting_subscription',
176 202 'wpcom_is_fse_activated',
203 + 'wpcom_legacy_contact',
204 + 'wpcom_locked_mode',
205 + 'wpcom_newsletter_categories',
206 + 'wpcom_newsletter_categories_enabled',
177 207 'wpcom_publish_comments_with_markdown',
178 208 'wpcom_publish_posts_with_markdown',
179 209 'wpcom_reader_views_enabled',
210 + 'wpcom_site_setup',
180 211 'wpcom_subscription_emails_use_excerpt',
181 - 'videopress_private_enabled_for_site',
182 - 'wpcom_gifting_subscription',
212 + 'jetpack_subscriptions_reply_to',
213 + 'jetpack_subscriptions_from_name',
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',
183 226 );
184 227
185 228 /**
186 229 * Return options whitelist filtered.
@@ -289,38 +332,44 @@
289 332 *
290 333 * @var array Default whitelist of callables.
291 334 */
292 335 public static $default_callable_whitelist = array(
293 - 'get_plugins' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_plugins' ),
294 - 'get_themes' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_themes' ),
295 - 'get_plugins_action_links' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_plugins_action_links' ),
296 - 'has_file_system_write_access' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'file_system_write_access' ),
297 - 'home_url' => array( 'Automattic\\Jetpack\\Connection\\Urls', 'home_url' ),
298 - 'hosting_provider' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_hosting_provider' ),
299 - 'is_fse_theme' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_is_fse_theme' ),
300 - 'is_main_network' => array( __CLASS__, 'is_multi_network' ),
301 - 'is_multi_site' => 'is_multisite',
302 - 'is_version_controlled' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'is_version_controlled' ),
303 - 'locale' => 'get_locale',
304 - 'main_network_site' => array( 'Automattic\\Jetpack\\Connection\\Urls', 'main_network_site_url' ),
305 - 'main_network_site_wpcom_id' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'main_network_site_wpcom_id' ),
306 - 'paused_plugins' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_paused_plugins' ),
307 - 'paused_themes' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_paused_themes' ),
308 - 'post_type_features' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_post_type_features' ),
309 - 'post_types' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_post_types' ),
310 - 'rest_api_allowed_post_types' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'rest_api_allowed_post_types' ),
311 - 'rest_api_allowed_public_metadata' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'rest_api_allowed_public_metadata' ),
312 - 'roles' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'roles' ),
313 - 'shortcodes' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_shortcodes' ),
314 - 'site_icon_url' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'site_icon_url' ),
315 - 'site_url' => array( 'Automattic\\Jetpack\\Connection\\Urls', 'site_url' ),
316 - 'taxonomies' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_taxonomies' ),
317 - 'theme_support' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_theme_support' ),
318 - 'timezone' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'get_timezone' ),
319 - 'wp_get_environment_type' => 'wp_get_environment_type',
320 - 'wp_max_upload_size' => 'wp_max_upload_size',
321 - 'wp_version' => array( 'Automattic\\Jetpack\\Sync\\Functions', 'wp_version' ),
322 - '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' ),
323 372 );
324 373
325 374 /**
326 375 * Array of post type attributes synced.
@@ -398,8 +447,9 @@
398 447 'flamingo_inbound',
399 448 'flamingo_outbound',
400 449 'http',
401 450 'idx_page',
451 + 'jetpack_inspect_log', // Jetpack Inspect dev tool. p1HpG7-nkd-p2
402 452 'jetpack_migration',
403 453 'jp_img_sitemap',
404 454 'jp_img_sitemap_index',
405 455 'jp_sitemap',
@@ -421,8 +471,16 @@
421 471 'wp_automatic',
422 472 'wp_log', // WP Logging Plugin.
423 473 'wpephpcompat_jobs',
424 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.
425 483 );
426 484
427 485 /**
428 486 * Taxonomies that we're not syncing by default.
@@ -723,14 +781,17 @@
723 781 '_wp_attachment_image_alt',
724 782 '_wp_attachment_is_custom_background',
725 783 '_wp_attachment_is_custom_header',
726 784 '_wp_attachment_metadata',
785 + '_wp_old_date',
727 786 '_wp_page_template',
728 787 '_wp_trash_meta_comments_status',
729 788 '_wpas_feature_enabled',
730 - '_wpas_is_tweetstorm',
789 + '_wpas_connection_overrides',
790 + '_wpas_customize_per_network',
731 791 '_wpas_mess',
732 792 '_wpas_options',
793 + '_jetpack_social_image_focal_point', // Publicize_Base::ATTACHMENT_IMAGE_FOCAL_POINT.
733 794 'advanced_seo_description', // Jetpack_SEO_Posts::DESCRIPTION_META_KEY.
734 795 'content_width',
735 796 'custom_css_add',
736 797 'custom_css_preprocessor',
@@ -742,8 +803,9 @@
742 803 'switch_like_status',
743 804 'videopress_guid',
744 805 'vimeo_poster_image',
745 806 '_jetpack_blogging_prompt_key',
807 + 'footnotes', // Core footnotes block
746 808 );
747 809
748 810 /**
749 811 * Get the post meta key whitelist.
@@ -773,8 +835,12 @@
773 835 'hc_avatar',
774 836 'hc_foreign_user_id',
775 837 'hc_post_as',
776 838 'hc_wpcom_id_sig',
839 + 'jetpack_comment_identity_avatar',
840 + 'jetpack_comment_identity_id',
841 + 'jetpack_comment_identity_provider',
842 + 'protocol',
777 843 );
778 844
779 845 /**
780 846 * Get the comment meta whitelist.
@@ -795,8 +861,34 @@
795 861 return apply_filters( 'jetpack_sync_comment_meta_whitelist', self::$comment_meta_whitelist );
796 862 }
797 863
798 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 + /**
799 891 * Default theme support whitelist.
800 892 *
801 893 * @todo move this to server? - these are theme support values
802 894 * that should be synced as jetpack_current_theme_supports_foo option values
@@ -822,8 +914,9 @@
822 914 'disable-layout-styles', // WP 6.1. Added via https://core.trac.wordpress.org/changeset/54159
823 915 'editor-color-palette',
824 916 'editor-font-sizes',
825 917 'editor-gradient-presets',
918 + 'editor-spacing-sizes',
826 919 'editor-style', // deprecated.
827 920 'editor-styles',
828 921 'html5',
829 922 'infinite-scroll',
@@ -1138,8 +1231,15 @@
1138 1231 */
1139 1232 public static $default_comment_meta_whitelist = array();
1140 1233
1141 1234 /**
1235 + * Default for sync actions blacklist.
1236 + *
1237 + * @var array Empty array.
1238 + */
1239 + public static $default_sync_actions_blacklist = array();
1240 +
1241 + /**
1142 1242 * Default for disabling sync across the site.
1143 1243 *
1144 1244 * @var int Bool-ish. Default to 0.
1145 1245 */
@@ -1249,46 +1349,63 @@
1249 1349 *
1250 1350 * @var array list of module names.
1251 1351 */
1252 1352 public static $default_full_sync_config = array(
1253 - 'comments' => 1,
1254 1353 'constants' => 1,
1255 1354 'functions' => 1,
1256 1355 'options' => 1,
1257 - 'posts' => 1,
1258 - 'term_relationships' => 1,
1259 1356 'terms' => 1,
1260 1357 'themes' => 1,
1358 + 'users' => 1,
1359 + 'posts' => 1,
1360 + 'comments' => 1,
1261 1361 'updates' => 1,
1262 - 'users' => 1,
1362 + 'term_relationships' => 1,
1263 1363 );
1264 1364
1265 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 + /**
1266 1375 * Default Full Sync max objects to send on a single request.
1267 1376 *
1268 1377 * @var array list of module => max.
1269 1378 */
1270 1379 public static $default_full_sync_limits = array(
1271 - 'comments' => array(
1380 + 'comments' => array(
1272 1381 'chunk_size' => 100,
1273 1382 'max_chunks' => 10,
1274 1383 ),
1275 - 'posts' => array(
1276 - 'chunk_size' => 100,
1384 + 'posts' => array(
1385 + 'chunk_size' => 500,
1277 1386 'max_chunks' => 1,
1278 1387 ),
1279 - 'term_relationships' => array(
1388 + 'term_relationships' => array(
1280 1389 'chunk_size' => 1000,
1281 1390 'max_chunks' => 10,
1282 1391 ),
1283 - 'terms' => array(
1392 + 'terms' => array(
1284 1393 'chunk_size' => 1000,
1285 1394 'max_chunks' => 10,
1286 1395 ),
1287 - 'users' => array(
1396 + 'users' => array(
1288 1397 'chunk_size' => 100,
1289 1398 'max_chunks' => 10,
1290 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 + ),
1291 1408 );
1292 1409
1293 1410 /**
1294 1411 * Default for enabling dedicated Sync flow.
@@ -1296,5 +1413,27 @@
1296 1413 * @var int Bool-ish. Default 0.
1297 1414 */
1298 1415 public static $default_dedicated_sync_enabled = 0;
1299 1416
1417 + /**
1418 + * Default for enabling custom queue table for Sync.
1419 + *
1420 + * @var int Bool-ish. Default 0.
1421 + */
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 + );
1300 1439 }