Set autosave_interval for fresh installs. DEfault to 60 if autosave_interval is not set. see #6075

git-svn-id: https://develop.svn.wordpress.org/trunk@7148 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-03-04 00:41:49 +00:00
parent 2d5d310247
commit 0f009c4b9f
3 changed files with 4 additions and 3 deletions

View File

@@ -48,8 +48,10 @@ class WP_Scripts {
) );
$this->add( 'autosave', '/wp-includes/js/autosave.js', array('schedule', 'wp-ajax-response'), '20080221' . mt_rand());
if ( ! $autosave_interval = get_option( 'autosave_interval' ) )
$autosave_interval = 60;
$this->localize( 'autosave', 'autosaveL10n', array(
'autosaveInterval' => get_option( 'autosave_interval' ),
'autosaveInterval' => $autosave_interval,
'previewPageText' => __('View this Page'),
'previewPostText' => __('View this Post'),
'requestFile' => get_option( 'siteurl' ) . '/wp-admin/admin-ajax.php',