From 1776af2d503167415f83b10dd53d6b0ac2784650 Mon Sep 17 00:00:00 2001 From: Mikael Korpela Date: Fri, 13 Apr 2018 17:57:34 +0300 Subject: [PATCH] Options: add basic options to sync whitelist (#9308) --- sync/class.jetpack-sync-defaults.php | 9 +++++++++ tests/php/sync/test_class.jetpack-sync-options.php | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/sync/class.jetpack-sync-defaults.php b/sync/class.jetpack-sync-defaults.php index 8e24178a95ecc..53569e277a7b2 100644 --- a/sync/class.jetpack-sync-defaults.php +++ b/sync/class.jetpack-sync-defaults.php @@ -111,6 +111,15 @@ class Jetpack_Sync_Defaults { 'advanced_seo_front_page_description', // Jetpack_SEO_Utils::FRONT_PAGE_META_OPTION 'advanced_seo_title_formats', // Jetpack_SEO_Titles::TITLE_FORMATS_OPTION 'jetpack_api_cache_enabled', + 'start_of_week', + 'blacklist_keys', + 'posts_per_page', + 'posts_per_rss', + 'show_on_front', + 'ping_sites', + 'uploads_use_yearmonth_folders', + 'date_format', + 'time_format', ); public static function get_options_whitelist() { diff --git a/tests/php/sync/test_class.jetpack-sync-options.php b/tests/php/sync/test_class.jetpack-sync-options.php index f2b3ae50a0987..6ac7b59675141 100644 --- a/tests/php/sync/test_class.jetpack-sync-options.php +++ b/tests/php/sync/test_class.jetpack-sync-options.php @@ -170,6 +170,15 @@ public function test_sync_default_options() { 'advanced_seo_title_formats' => array( 'posts' => array( 'type' => 'string', 'value' => 'test' ) ), // Jetpack_SEO_Titles::TITLE_FORMATS_OPTION 'jetpack_api_cache_enabled' => '1', 'sidebars_widgets' => array( 'array_version' => 3 ), + 'start_of_week' => '0', + 'blacklist_keys' => '', + 'posts_per_page' => '1', + 'posts_per_rss' => '1', + 'show_on_front' => '0', + 'ping_sites' => false, + 'uploads_use_yearmonth_folders' => '0', + 'date_format' => '0', + 'time_format' => '0', ); $theme_mod_key = 'theme_mods_' . get_option( 'stylesheet' );