summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2018-06-08 10:09:24 -0400
committerAnthony G. Basile <blueness@gentoo.org>2018-06-08 10:09:24 -0400
commita6b006c0f1ef757f23375f7906193370337d8bd7 (patch)
tree4467c6423b2c54e6ef8c3e79241a833fb17833a5 /plugins/jetpack/sync/class.jetpack-sync-defaults.php
parentUpdate akismet 4.0.7 (diff)
downloadblogs-gentoo-a6b006c0f1ef757f23375f7906193370337d8bd7.tar.gz
blogs-gentoo-a6b006c0f1ef757f23375f7906193370337d8bd7.tar.bz2
blogs-gentoo-a6b006c0f1ef757f23375f7906193370337d8bd7.zip
Update jetpack 6.2
Diffstat (limited to 'plugins/jetpack/sync/class.jetpack-sync-defaults.php')
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-defaults.php43
1 files changed, 41 insertions, 2 deletions
diff --git a/plugins/jetpack/sync/class.jetpack-sync-defaults.php b/plugins/jetpack/sync/class.jetpack-sync-defaults.php
index 8e24178a..5e320750 100644
--- a/plugins/jetpack/sync/class.jetpack-sync-defaults.php
+++ b/plugins/jetpack/sync/class.jetpack-sync-defaults.php
@@ -111,6 +111,25 @@ 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',
+ 'admin_email',
+ 'new_admin_email',
+ 'default_email_category',
+ 'default_role',
+ 'page_for_posts',
+ 'mailserver_url',
+ 'mailserver_login', // Not syncing contents, only the option name
+ 'mailserver_pass', // Not syncing contents, only the option name
+ 'mailserver_port',
+ 'wp_page_for_privacy_policy',
);
public static function get_options_whitelist() {
@@ -128,6 +147,25 @@ class Jetpack_Sync_Defaults {
return apply_filters( 'jetpack_sync_options_whitelist', $options_whitelist );
}
+ // Do not sync contents for these events, only the option name
+ static $default_options_contentless = array(
+ 'mailserver_login',
+ 'mailserver_pass',
+ );
+
+ public static function get_options_contentless() {
+ /**
+ * Filter the list of WordPress options that should be synced without content
+ *
+ * @module sync
+ *
+ * @since 6.1
+ *
+ * @param array The list of options synced without content.
+ */
+ return apply_filters( 'jetpack_sync_options_contentless', self::$default_options_contentless );
+ }
+
static $default_constants_whitelist = array(
'EMPTY_TRASH_DAYS',
'WP_POST_REVISIONS',
@@ -187,12 +225,13 @@ class Jetpack_Sync_Defaults {
'sso_bypass_default_login_form' => array( 'Jetpack_SSO_Helpers', 'bypass_login_forward_wpcom' ),
'wp_version' => array( 'Jetpack_Sync_Functions', 'wp_version' ),
'get_plugins' => array( 'Jetpack_Sync_Functions', 'get_plugins' ),
- 'get_plugins_action_links' => array( 'Jetpack_Sync_functions', 'get_plugins_action_links' ),
+ 'get_plugins_action_links' => array( 'Jetpack_Sync_functions', 'get_plugins_action_links' ),
'active_modules' => array( 'Jetpack', 'get_active_modules' ),
'hosting_provider' => array( 'Jetpack_Sync_Functions', 'get_hosting_provider' ),
'locale' => 'get_locale',
'site_icon_url' => array( 'Jetpack_Sync_Functions', 'site_icon_url' ),
- 'roles' => array( 'Jetpack_Sync_Functions', 'roles' ),
+ 'roles' => array( 'Jetpack_Sync_Functions', 'roles' ),
+ 'timezone' => array( 'Jetpack_Sync_Functions', 'get_timezone' ),
);