Make WordPress Core

Changeset 21697


Ignore:
Timestamp:
09/03/2012 03:39:06 PM (12 years ago)
Author:
nacin
Message:

Load the meta box sortables JS on the Edit Comment screen. props SergeyBiryukov. fixes #21499.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/comment.js

    r21592 r21697  
    11jQuery(document).ready( function($) {
     2
     3    postboxes.add_postbox_toggles('comment');
    24
    35    var stamp = $('#timestamp').html();
  • trunk/wp-includes/script-loader.php

    r21696 r21697  
    377377        ) );
    378378
    379         $scripts->add( 'link', "/wp-admin/js/link$suffix.js", array('wp-lists', 'postbox'), false, 1 );
    380 
    381         $scripts->add( 'comment', "/wp-admin/js/comment$suffix.js", array('jquery') );
     379        $scripts->add( 'link', "/wp-admin/js/link$suffix.js", array( 'wp-lists', 'postbox' ), false, 1 );
     380
     381        $scripts->add( 'comment', "/wp-admin/js/comment$suffix.js", array( 'jquery', 'postbox' ) );
    382382        $scripts->add_data( 'comment', 'group', 1 );
    383383        did_action( 'init' ) && $scripts->localize( 'comment', 'commentL10n', array(
Note: See TracChangeset for help on using the changeset viewer.