Make WordPress Core

Ticket #30008: 30008.patch

File 30008.patch, 2.1 KB (added by azaozz, 12 years ago)
  • src/wp-admin/edit.php

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

     
    114114                'dismiss' => __('Dismiss'),
    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 );
    120120        did_action( 'init' ) && $scripts->localize( 'heartbeat', 'heartbeatSettings',
     
    436436
    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'),
    442442                        'cancel' => __('Cancel'),
     
    479479
    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.'),
    485485                        'ntdeltitle' => __('Remove From Bulk Edit'),