Skip to content

Commit

Permalink
Options: add basic options to sync whitelist (#9308)
Browse files Browse the repository at this point in the history
  • Loading branch information
simison authored Apr 13, 2018
1 parent ca2fb5a commit 1776af2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sync/class.jetpack-sync-defaults.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
9 changes: 9 additions & 0 deletions tests/php/sync/test_class.jetpack-sync-options.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down

0 comments on commit 1776af2

Please sign in to comment.