Completed
Push — branch-7.3 ( 86ec2a )
by
unknown
43:59 queued 37:13
created

Jetpack_Sync_Defaults::get_options_contentless()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 12
rs 9.8666
c 0
b 0
f 0
1
<?php
2
require_once JETPACK__PLUGIN_DIR . 'modules/sso/class.jetpack-sso-helpers.php';
3
4
/**
5
 * Just some defaults that we share with the server
6
 */
7
class Jetpack_Sync_Defaults {
8
9
	static $default_options_whitelist = array(
10
		'stylesheet',
11
		'blogname',
12
		'blogdescription',
13
		'blog_charset',
14
		'permalink_structure',
15
		'category_base',
16
		'tag_base',
17
		'sidebars_widgets',
18
		'comment_moderation',
19
		'default_comment_status',
20
		'page_on_front',
21
		'rss_use_excerpt',
22
		'subscription_options',
23
		'stb_enabled',
24
		'stc_enabled',
25
		'comment_registration',
26
		'show_avatars',
27
		'avatar_default',
28
		'avatar_rating',
29
		'highlander_comment_form_prompt',
30
		'jetpack_comment_form_color_scheme',
31
		'stats_options',
32
		'gmt_offset',
33
		'timezone_string',
34
		'jetpack_sync_non_public_post_stati',
35
		'jetpack_options',
36
		'site_icon', // (int) - ID of core's Site Icon attachment ID
37
		'default_post_format',
38
		'default_category',
39
		'large_size_w',
40
		'large_size_h',
41
		'thumbnail_size_w',
42
		'thumbnail_size_h',
43
		'medium_size_w',
44
		'medium_size_h',
45
		'thumbnail_crop',
46
		'image_default_link_type',
47
		'site_logo',
48
		'sharing-options',
49
		'sharing-services',
50
		'post_count',
51
		'default_ping_status',
52
		'sticky_posts',
53
		'blog_public',
54
		'default_pingback_flag',
55
		'require_name_email',
56
		'close_comments_for_old_posts',
57
		'close_comments_days_old',
58
		'thread_comments',
59
		'thread_comments_depth',
60
		'page_comments',
61
		'comments_per_page',
62
		'default_comments_page',
63
		'comment_order',
64
		'comments_notify',
65
		'moderation_notify',
66
		'social_notifications_like',
67
		'social_notifications_reblog',
68
		'social_notifications_subscribe',
69
		'comment_whitelist',
70
		'comment_max_links',
71
		'moderation_keys',
72
		'jetpack_wga',
73
		'disabled_likes',
74
		'disabled_reblogs',
75
		'jetpack_comment_likes_enabled',
76
		'twitter_via',
77
		'jetpack-memberships-connected-account-id',
78
		'jetpack-twitter-cards-site-tag',
79
		'wpcom_publish_posts_with_markdown',
80
		'wpcom_publish_comments_with_markdown',
81
		'jetpack_activated',
82
		'jetpack_available_modules',
83
		'jetpack_autoupdate_plugins',
84
		'jetpack_autoupdate_plugins_translations',
85
		'jetpack_autoupdate_themes',
86
		'jetpack_autoupdate_themes_translations',
87
		'jetpack_autoupdate_core',
88
		'jetpack_autoupdate_translations',
89
		'carousel_background_color',
90
		'carousel_display_exif',
91
		'jetpack_portfolio',
92
		'jetpack_portfolio_posts_per_page',
93
		'jetpack_testimonial',
94
		'jetpack_testimonial_posts_per_page',
95
		'tiled_galleries',
96
		'gravatar_disable_hovercards',
97
		'infinite_scroll',
98
		'infinite_scroll_google_analytics',
99
		'wp_mobile_excerpt',
100
		'wp_mobile_featured_images',
101
		'wp_mobile_app_promos',
102
		'monitor_receive_notifications',
103
		'post_by_email_address',
104
		'jetpack_mailchimp',
105
		'jetpack_protect_key',
106
		'jetpack_protect_global_whitelist',
107
		'jetpack_sso_require_two_step',
108
		'jetpack_sso_match_by_email',
109
		'jetpack_relatedposts',
110
		'verification_services_codes',
111
		'users_can_register',
112
		'active_plugins',
113
		'uninstall_plugins',
114
		'advanced_seo_front_page_description', // Jetpack_SEO_Utils::FRONT_PAGE_META_OPTION
115
		'advanced_seo_title_formats', // Jetpack_SEO_Titles::TITLE_FORMATS_OPTION
116
		'jetpack_api_cache_enabled',
117
		'start_of_week',
118
		'blacklist_keys',
119
		'posts_per_page',
120
		'posts_per_rss',
121
		'show_on_front',
122
		'ping_sites',
123
		'uploads_use_yearmonth_folders',
124
		'date_format',
125
		'time_format',
126
		'admin_email',
127
		'new_admin_email',
128
		'default_email_category',
129
		'default_role',
130
		'page_for_posts',
131
		'mailserver_url',
132
		'mailserver_login', // Not syncing contents, only the option name
133
		'mailserver_pass', // Not syncing contents, only the option name
134
		'mailserver_port',
135
		'wp_page_for_privacy_policy',
136
		'enable_header_ad',
137
		'wordads_second_belowpost',
138
		'wordads_display_front_page',
139
		'wordads_display_post',
140
		'wordads_display_page',
141
		'wordads_display_archive',
142
		'wordads_custom_adstxt',
143
		'site_segment',
144
		'site_user_type',
145
		'site_vertical',
146
		'jetpack_excluded_extensions',
147
	);
148
149
	public static function get_options_whitelist() {
150
		/** This filter is already documented in json-endpoints/jetpack/class.wpcom-json-api-get-option-endpoint.php */
151
		$options_whitelist = apply_filters( 'jetpack_options_whitelist', self::$default_options_whitelist );
152
		/**
153
		 * Filter the list of WordPress options that are manageable via the JSON API.
154
		 *
155
		 * @module sync
156
		 *
157
		 * @since 4.8.0
158
		 *
159
		 * @param array The default list of options.
160
		 */
161
		return apply_filters( 'jetpack_sync_options_whitelist', $options_whitelist );
162
	}
163
164
	// Do not sync contents for these events, only the option name
165
	static $default_options_contentless = array(
166
		'mailserver_login',
167
		'mailserver_pass',
168
	);
169
170
	public static function get_options_contentless() {
171
		/**
172
		 * Filter the list of WordPress options that should be synced without content
173
		 *
174
		 * @module sync
175
		 *
176
		 * @since 6.1.0
177
		 *
178
		 * @param array The list of options synced without content.
179
		 */
180
		return apply_filters( 'jetpack_sync_options_contentless', self::$default_options_contentless );
181
	}
182
183
	static $default_constants_whitelist = array(
184
		'EMPTY_TRASH_DAYS',
185
		'WP_POST_REVISIONS',
186
		'AUTOMATIC_UPDATER_DISABLED',
187
		'ABSPATH',
188
		'WP_CONTENT_DIR',
189
		'FS_METHOD',
190
		'DISALLOW_FILE_EDIT',
191
		'DISALLOW_FILE_MODS',
192
		'WP_AUTO_UPDATE_CORE',
193
		'WP_HTTP_BLOCK_EXTERNAL',
194
		'WP_ACCESSIBLE_HOSTS',
195
		'JETPACK__VERSION',
196
		'IS_PRESSABLE',
197
		'DISABLE_WP_CRON',
198
		'ALTERNATE_WP_CRON',
199
		'WP_CRON_LOCK_TIMEOUT',
200
		'PHP_VERSION',
201
		'WP_MEMORY_LIMIT',
202
		'WP_MAX_MEMORY_LIMIT',
203
	);
204
205
	public static function get_constants_whitelist() {
206
		/**
207
		 * Filter the list of PHP constants that are manageable via the JSON API.
208
		 *
209
		 * @module sync
210
		 *
211
		 * @since 4.8.0
212
		 *
213
		 * @param array The default list of constants options.
214
		 */
215
		return apply_filters( 'jetpack_sync_constants_whitelist', self::$default_constants_whitelist );
216
	}
217
218
	static $default_callable_whitelist = array(
219
		'wp_max_upload_size'               => 'wp_max_upload_size',
220
		'is_main_network'                  => array( 'Jetpack', 'is_multi_network' ),
221
		'is_multi_site'                    => 'is_multisite',
222
		'main_network_site'                => array( 'Jetpack_Sync_Functions', 'main_network_site_url' ),
223
		'site_url'                         => array( 'Jetpack_Sync_Functions', 'site_url' ),
224
		'home_url'                         => array( 'Jetpack_Sync_Functions', 'home_url' ),
225
		'single_user_site'                 => array( 'Jetpack', 'is_single_user_site' ),
226
		'updates'                          => array( 'Jetpack', 'get_updates' ),
227
		'has_file_system_write_access'     => array( 'Jetpack_Sync_Functions', 'file_system_write_access' ),
228
		'is_version_controlled'            => array( 'Jetpack_Sync_Functions', 'is_version_controlled' ),
229
		'taxonomies'                       => array( 'Jetpack_Sync_Functions', 'get_taxonomies' ),
230
		'post_types'                       => array( 'Jetpack_Sync_Functions', 'get_post_types' ),
231
		'post_type_features'               => array( 'Jetpack_Sync_Functions', 'get_post_type_features' ),
232
		'shortcodes'                       => array( 'Jetpack_Sync_Functions', 'get_shortcodes' ),
233
		'rest_api_allowed_post_types'      => array( 'Jetpack_Sync_Functions', 'rest_api_allowed_post_types' ),
234
		'rest_api_allowed_public_metadata' => array( 'Jetpack_Sync_Functions', 'rest_api_allowed_public_metadata' ),
235
		'sso_is_two_step_required'         => array( 'Jetpack_SSO_Helpers', 'is_two_step_required' ),
236
		'sso_should_hide_login_form'       => array( 'Jetpack_SSO_Helpers', 'should_hide_login_form' ),
237
		'sso_match_by_email'               => array( 'Jetpack_SSO_Helpers', 'match_by_email' ),
238
		'sso_new_user_override'            => array( 'Jetpack_SSO_Helpers', 'new_user_override' ),
239
		'sso_bypass_default_login_form'    => array( 'Jetpack_SSO_Helpers', 'bypass_login_forward_wpcom' ),
240
		'wp_version'                       => array( 'Jetpack_Sync_Functions', 'wp_version' ),
241
		'get_plugins'                      => array( 'Jetpack_Sync_Functions', 'get_plugins' ),
242
		'get_plugins_action_links'         => array( 'Jetpack_Sync_functions', 'get_plugins_action_links' ),
243
		'active_modules'                   => array( 'Jetpack', 'get_active_modules' ),
244
		'hosting_provider'                 => array( 'Jetpack_Sync_Functions', 'get_hosting_provider' ),
245
		'locale'                           => 'get_locale',
246
		'site_icon_url'                    => array( 'Jetpack_Sync_Functions', 'site_icon_url' ),
247
		'roles'                            => array( 'Jetpack_Sync_Functions', 'roles' ),
248
		'timezone'                         => array( 'Jetpack_Sync_Functions', 'get_timezone' ),
249
		'available_jetpack_blocks'         => array( 'Jetpack_Gutenberg', 'get_availability' ), // Includes both Gutenberg blocks *and* plugins
250
		'paused_themes'                    => array( 'Jetpack_Sync_Functions', 'get_paused_themes' ),
251
		'paused_plugins'                   => array( 'Jetpack_Sync_Functions', 'get_paused_plugins' ),
252
	);
253
254
255
	static $default_post_type_attributes = array(
256
		'name'                => '',
257
		'label'               => '',
258
		'labels'              => array(),
259
		'description'         => '',
260
		'public'              => false,
261
		'hierarchical'        => false,
262
		'exclude_from_search' => true,
263
		'publicly_queryable'  => null,
264
		'show_ui'             => false,
265
		'show_in_menu'        => null,
266
		'show_in_nav_menus'   => null,
267
		'show_in_admin_bar'   => false,
268
		'menu_position'       => null,
269
		'menu_icon'           => null,
270
		'supports'            => array(),
271
		'capability_type'     => 'post',
272
		'capabilities'        => array(),
273
		'cap'                 => array(),
274
		'map_meta_cap'        => true,
275
		'taxonomies'          => array(),
276
		'has_archive'         => false,
277
		'rewrite'             => true,
278
		'query_var'           => true,
279
		'can_export'          => true,
280
		'delete_with_user'    => null,
281
		'show_in_rest'        => false,
282
		'rest_base'           => false,
283
		'_builtin'            => false,
284
		'_edit_link'          => 'post.php?post=%d',
285
	);
286
287
	public static function get_callable_whitelist() {
288
		/**
289
		 * Filter the list of callables that are manageable via the JSON API.
290
		 *
291
		 * @module sync
292
		 *
293
		 * @since 4.8.0
294
		 *
295
		 * @param array The default list of callables.
296
		 */
297
		return apply_filters( 'jetpack_sync_callable_whitelist', self::$default_callable_whitelist );
298
	}
299
300
	static $blacklisted_post_types = array(
301
		'ai1ec_event',
302
		'bwg_album',
303
		'bwg_gallery',
304
		'customize_changeset', // WP built-in post type for Customizer changesets
305
		'dn_wp_yt_log',
306
		'http',
307
		'idx_page',
308
		'jetpack_migration',
309
		'postman_sent_mail',
310
		'rssap-feed',
311
		'rssmi_feed_item',
312
		'secupress_log_action',
313
		'sg_optimizer_jobs',
314
		'snitch',
315
		'wpephpcompat_jobs',
316
		'wprss_feed_item',
317
		'wp_automatic',
318
		'jp_sitemap_master',
319
		'jp_sitemap',
320
		'jp_sitemap_index',
321
		'jp_img_sitemap',
322
		'jp_img_sitemap_index',
323
		'jp_vid_sitemap',
324
		'jp_vid_sitemap_index',
325
		'vip-legacy-redirect',
326
	);
327
328
	static $default_post_checksum_columns = array(
329
		'ID',
330
		'post_modified',
331
	);
332
333
	static $default_post_meta_checksum_columns = array(
334
		'meta_id',
335
		'meta_value',
336
	);
337
338
	static $default_comment_checksum_columns = array(
339
		'comment_ID',
340
		'comment_content',
341
	);
342
343
	static $default_comment_meta_checksum_columns = array(
344
		'meta_id',
345
		'meta_value',
346
	);
347
348
	static $default_option_checksum_columns = array(
349
		'option_name',
350
		'option_value',
351
	);
352
353
	static $default_multisite_callable_whitelist = array(
354
		'network_name'                        => array( 'Jetpack', 'network_name' ),
355
		'network_allow_new_registrations'     => array( 'Jetpack', 'network_allow_new_registrations' ),
356
		'network_add_new_users'               => array( 'Jetpack', 'network_add_new_users' ),
357
		'network_site_upload_space'           => array( 'Jetpack', 'network_site_upload_space' ),
358
		'network_upload_file_types'           => array( 'Jetpack', 'network_upload_file_types' ),
359
		'network_enable_administration_menus' => array( 'Jetpack', 'network_enable_administration_menus' ),
360
	);
361
362
	public static function get_multisite_callable_whitelist() {
363
		/**
364
		 * Filter the list of multisite callables that are manageable via the JSON API.
365
		 *
366
		 * @module sync
367
		 *
368
		 * @since 4.8.0
369
		 *
370
		 * @param array The default list of multisite callables.
371
		 */
372
		return apply_filters( 'jetpack_sync_multisite_callable_whitelist', self::$default_multisite_callable_whitelist );
373
	}
374
375
	static $post_meta_whitelist = array(
376
		'_feedback_akismet_values',
377
		'_feedback_email',
378
		'_feedback_extra_fields',
379
		'_g_feedback_shortcode',
380
		'_jetpack_post_thumbnail',
381
		'_menu_item_classes',
382
		'_menu_item_menu_item_parent',
383
		'_menu_item_object',
384
		'_menu_item_object_id',
385
		'_menu_item_orphaned',
386
		'_menu_item_type',
387
		'_menu_item_xfn',
388
		'_publicize_facebook_user',
389
		'_publicize_twitter_user',
390
		'_thumbnail_id',
391
		'_wp_attached_file',
392
		'_wp_attachment_backup_sizes',
393
		'_wp_attachment_context',
394
		'_wp_attachment_image_alt',
395
		'_wp_attachment_is_custom_background',
396
		'_wp_attachment_is_custom_header',
397
		'_wp_attachment_metadata',
398
		'_wp_page_template',
399
		'_wp_trash_meta_comments_status',
400
		'_wpas_mess',
401
		'content_width',
402
		'custom_css_add',
403
		'custom_css_preprocessor',
404
		'enclosure',
405
		'imagedata',
406
		'nova_price',
407
		'publicize_results',
408
		'sharing_disabled',
409
		'switch_like_status',
410
		'videopress_guid',
411
		'vimeo_poster_image',
412
		'advanced_seo_description', // Jetpack_SEO_Posts::DESCRIPTION_META_KEY
413
	);
414
415
	public static function get_post_meta_whitelist() {
416
		/**
417
		 * Filter the list of post meta data that are manageable via the JSON API.
418
		 *
419
		 * @module sync
420
		 *
421
		 * @since 4.8.0
422
		 *
423
		 * @param array The default list of meta data keys.
424
		 */
425
		return apply_filters( 'jetpack_sync_post_meta_whitelist', self::$post_meta_whitelist );
426
	}
427
428
	static $comment_meta_whitelist = array(
429
		'hc_avatar',
430
		'hc_post_as',
431
		'hc_wpcom_id_sig',
432
		'hc_foreign_user_id',
433
	);
434
435
	public static function get_comment_meta_whitelist() {
436
		/**
437
		 * Filter the list of comment meta data that are manageable via the JSON API.
438
		 *
439
		 * @module sync
440
		 *
441
		 * @since 5.7.0
442
		 *
443
		 * @param array The default list of comment meta data keys.
444
		 */
445
		return apply_filters( 'jetpack_sync_comment_meta_whitelist', self::$comment_meta_whitelist );
446
	}
447
448
	// TODO: move this to server? - these are theme support values
449
	// that should be synced as jetpack_current_theme_supports_foo option values
450
	static $default_theme_support_whitelist = array(
451
		'post-thumbnails',
452
		'post-formats',
453
		'custom-header',
454
		'custom-background',
455
		'custom-logo',
456
		'menus',
457
		'automatic-feed-links',
458
		'editor-style',
459
		'widgets',
460
		'html5',
461
		'title-tag',
462
		'jetpack-social-menu',
463
		'jetpack-responsive-videos',
464
		'infinite-scroll',
465
		'site-logo',
466
	);
467
468
	static function is_whitelisted_option( $option ) {
469
		$whitelisted_options = self::get_options_whitelist();
470
		foreach ( $whitelisted_options as $whitelisted_option ) {
471
			if ( $whitelisted_option[0] === '/' && preg_match( $whitelisted_option, $option ) ) {
472
				return true;
473
			} elseif ( $whitelisted_option === $option ) {
474
				return true;
475
			}
476
		}
477
478
		return false;
479
	}
480
481
	static $default_capabilities_whitelist = array(
482
		'switch_themes',
483
		'edit_themes',
484
		'edit_theme_options',
485
		'install_themes',
486
		'activate_plugins',
487
		'edit_plugins',
488
		'install_plugins',
489
		'edit_users',
490
		'edit_files',
491
		'manage_options',
492
		'moderate_comments',
493
		'manage_categories',
494
		'manage_links',
495
		'upload_files',
496
		'import',
497
		'unfiltered_html',
498
		'edit_posts',
499
		'edit_others_posts',
500
		'edit_published_posts',
501
		'publish_posts',
502
		'edit_pages',
503
		'read',
504
		'publish_pages',
505
		'edit_others_pages',
506
		'edit_published_pages',
507
		'delete_pages',
508
		'delete_others_pages',
509
		'delete_published_pages',
510
		'delete_posts',
511
		'delete_others_posts',
512
		'delete_published_posts',
513
		'delete_private_posts',
514
		'edit_private_posts',
515
		'read_private_posts',
516
		'delete_private_pages',
517
		'edit_private_pages',
518
		'read_private_pages',
519
		'delete_users',
520
		'create_users',
521
		'unfiltered_upload',
522
		'edit_dashboard',
523
		'customize',
524
		'delete_site',
525
		'update_plugins',
526
		'delete_plugins',
527
		'update_themes',
528
		'update_core',
529
		'list_users',
530
		'remove_users',
531
		'add_users',
532
		'promote_users',
533
		'delete_themes',
534
		'export',
535
		'edit_comment',
536
		'upload_plugins',
537
		'upload_themes',
538
	);
539
540
	public static function get_capabilities_whitelist() {
541
		/**
542
		 * Filter the list of capabilities that we care about
543
		 *
544
		 * @module sync
545
		 *
546
		 * @since 5.5.0
547
		 *
548
		 * @param array The default list of capabilities.
549
		 */
550
		return apply_filters( 'jetpack_sync_capabilities_whitelist', self::$default_capabilities_whitelist );
551
	}
552
553
	static function get_max_sync_execution_time() {
554
		$max_exec_time = intval( ini_get( 'max_execution_time' ) );
555
		if ( 0 === $max_exec_time ) {
556
			// 0 actually means "unlimited", but let's not treat it that way
557
			$max_exec_time = 60;
558
		}
559
		return floor( $max_exec_time / 3 );
560
	}
561
562
	static function get_default_setting( $setting ) {
563
		$default_name = "default_$setting"; // e.g. default_dequeue_max_bytes
564
		return Jetpack_Sync_Defaults::$$default_name;
565
	}
566
567
	static $default_network_options_whitelist = array(
568
		'site_name',
569
		'jetpack_protect_key',
570
		'jetpack_protect_global_whitelist',
571
		'active_sitewide_plugins',
572
	);
573
574
	/**
575
	 * A mapping of known importers to friendly names.
576
	 *
577
	 * Keys are the class name of the known importer.
578
	 * Values are the friendly name.
579
	 *
580
	 * @since 7.3.0
581
	 *
582
	 * @var array
583
	 */
584
	public static $default_known_importers = array(
585
		'Blogger_Importer'     => 'blogger',
586
		'LJ_API_Import'        => 'livejournal',
587
		'MT_Import'            => 'mt',
588
		'RSS_Import'           => 'rss',
589
		'WC_Tax_Rate_Importer' => 'woo-tax-rate',
590
		'WP_Import'            => 'wordpress',
591
	);
592
593
	/**
594
	 * Returns a list of known importers.
595
	 *
596
	 * @since 7.3.0
597
	 *
598
	 * @return array Known importers with importer class names as keys and friendly names as values.
599
	 */
600
	public static function get_known_importers() {
601
		/**
602
		 * Filter the list of known importers.
603
		 *
604
		 * @module sync
605
		 *
606
		 * @since 7.3.0
607
		 *
608
		 * @param array The default list of known importers.
609
		 */
610
		return apply_filters( 'jetpack_sync_known_importers', self::$default_known_importers );
611
	}
612
613
	static $default_taxonomy_whitelist       = array();
614
	static $default_dequeue_max_bytes        = 500000; // very conservative value, 1/2 MB
615
	static $default_upload_max_bytes         = 600000; // a little bigger than the upload limit to account for serialization
616
	static $default_upload_max_rows          = 500;
617
	static $default_sync_wait_time           = 10; // seconds, between syncs
618
	static $default_sync_wait_threshold      = 5; // only wait before next send if the current send took more than X seconds
619
	static $default_enqueue_wait_time        = 10; // wait between attempting to continue a full sync, via requests
620
	static $default_max_queue_size           = 1000;
621
	static $default_max_queue_lag            = 900; // 15 minutes
622
	static $default_queue_max_writes_sec     = 100; // 100 rows a second
623
	static $default_post_types_blacklist     = array();
624
	static $default_post_meta_whitelist      = array();
625
	static $default_comment_meta_whitelist   = array();
626
	static $default_disable                  = 0; // completely disable sending data to wpcom
627
	static $default_network_disable          = 0; // completely disable sending data to wpcom network wide
628
	static $default_sync_via_cron            = 1; // use cron to sync
629
	static $default_render_filtered_content  = 0; // render post_filtered_content
630
	static $default_max_enqueue_full_sync    = 100; // max number of items to enqueue at a time when running full sync
631
	static $default_max_queue_size_full_sync = 1000; // max number of total items in the full sync queue
632
	static $default_sync_callables_wait_time = MINUTE_IN_SECONDS; // seconds before sending callables again
633
	static $default_sync_constants_wait_time = HOUR_IN_SECONDS; // seconds before sending constants again
634
	static $default_sync_queue_lock_timeout  = 120; // 2 minutes
635
	static $default_cron_sync_time_limit     = 30; // 30 seconds
636
637
}
638