Make WordPress Core

Changeset 29989


Ignore:
Timestamp:
10/22/2014 03:40:13 AM (12 years ago)
Author:
azaozz
Message:

Script-loader: remove 'heartbeat' dependency for post.js and inline-edit-post.js, fix dependencies for autosave.js. Fixes #30008

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit.php

    r28729 r29989  
    159159
    160160wp_enqueue_script('inline-edit-post');
     161wp_enqueue_script('heartbeat');
    161162
    162163$title = $post_type_object->labels->name;
  • trunk/src/wp-includes/script-loader.php

    r29961 r29989  
    115115        ) );
    116116
    117         $scripts->add( 'autosave', "/wp-includes/js/autosave$suffix.js", array('schedule', 'wp-ajax-response'), false, 1 );
     117        $scripts->add( 'autosave', "/wp-includes/js/autosave$suffix.js", array('heartbeat'), false, 1 );
    118118
    119119        $scripts->add( 'heartbeat', "/wp-includes/js/heartbeat$suffix.js", array('jquery'), false, 1 );
     
    437437                $scripts->add( 'postbox', "/wp-admin/js/postbox$suffix.js", array('jquery-ui-sortable'), false, 1 );
    438438
    439                 $scripts->add( 'post', "/wp-admin/js/post$suffix.js", array('suggest', 'wp-lists', 'postbox', 'heartbeat'), false, 1 );
     439                $scripts->add( 'post', "/wp-admin/js/post$suffix.js", array('suggest', 'wp-lists', 'postbox'), false, 1 );
    440440                did_action( 'init' ) && $scripts->localize( 'post', 'postL10n', array(
    441441                        'ok' => __('OK'),
     
    480480                $scripts->add( 'theme', "/wp-admin/js/theme$suffix.js", array( 'wp-backbone' ), false, 1 );
    481481
    482                 $scripts->add( 'inline-edit-post', "/wp-admin/js/inline-edit-post$suffix.js", array( 'jquery', 'suggest', 'heartbeat' ), false, 1 );
     482                $scripts->add( 'inline-edit-post', "/wp-admin/js/inline-edit-post$suffix.js", array( 'jquery', 'suggest' ), false, 1 );
    483483                did_action( 'init' ) && $scripts->localize( 'inline-edit-post', 'inlineEditL10n', array(
    484484                        'error' => __('Error while saving the changes.'),
Note: See TracChangeset for help on using the changeset viewer.