diff --git a/sync/class.jetpack-sync-defaults.php b/sync/class.jetpack-sync-defaults.php index 8f60c219ceb24..b9ab7402b07a6 100644 --- a/sync/class.jetpack-sync-defaults.php +++ b/sync/class.jetpack-sync-defaults.php @@ -457,7 +457,8 @@ public static function get_comment_meta_whitelist() { ); static function is_whitelisted_option( $option ) { - foreach ( self::$default_options_whitelist as $whitelisted_option ) { + $whitelisted_options = self::get_options_whitelist(); + foreach ( $whitelisted_options as $whitelisted_option ) { if ( $whitelisted_option[0] === '/' && preg_match( $whitelisted_option, $option ) ) { return true; } elseif ( $whitelisted_option === $option ) {