mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-30 02:04:26 +00:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user