mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-07 09:49:04 +00:00
Autosave:
* Remove editor.js as a dependency for autosave.js, as it was in 3.5. * Remove heartbeat.js as an implicit dependency. * Abstract out the serialization of title/content/excerpt for comparisons. props azaozz. fixes #24756. git-svn-id: https://develop.svn.wordpress.org/trunk@24774 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -103,7 +103,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
'dismiss' => __('Dismiss'),
|
||||
) );
|
||||
|
||||
$scripts->add( 'autosave', "/wp-includes/js/autosave$suffix.js", array('schedule', 'wp-ajax-response', 'editor'), false, 1 );
|
||||
$scripts->add( 'autosave', "/wp-includes/js/autosave$suffix.js", array('schedule', 'wp-ajax-response'), false, 1 );
|
||||
|
||||
$scripts->add( 'heartbeat', "/wp-includes/js/heartbeat$suffix.js", array('jquery'), false, 1 );
|
||||
did_action( 'init' ) && $scripts->localize( 'heartbeat', 'heartbeatSettings',
|
||||
|
||||
Reference in New Issue
Block a user