Load the meta box sortables JS on the Edit Comment screen. props SergeyBiryukov. fixes #21499.
git-svn-id: https://develop.svn.wordpress.org/trunk@21697 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
903479fb96
commit
a7bc84096f
@ -1,5 +1,7 @@
|
||||
jQuery(document).ready( function($) {
|
||||
|
||||
postboxes.add_postbox_toggles('comment');
|
||||
|
||||
var stamp = $('#timestamp').html();
|
||||
$('.edit-timestamp').click(function () {
|
||||
if ($('#timestampdiv').is(":hidden")) {
|
||||
|
@ -376,9 +376,9 @@ function wp_default_scripts( &$scripts ) {
|
||||
'comma' => _x( ',', 'tag delimiter' ),
|
||||
) );
|
||||
|
||||
$scripts->add( 'link', "/wp-admin/js/link$suffix.js", array('wp-lists', 'postbox'), false, 1 );
|
||||
$scripts->add( 'link', "/wp-admin/js/link$suffix.js", array( 'wp-lists', 'postbox' ), false, 1 );
|
||||
|
||||
$scripts->add( 'comment', "/wp-admin/js/comment$suffix.js", array('jquery') );
|
||||
$scripts->add( 'comment', "/wp-admin/js/comment$suffix.js", array( 'jquery', 'postbox' ) );
|
||||
$scripts->add_data( 'comment', 'group', 1 );
|
||||
did_action( 'init' ) && $scripts->localize( 'comment', 'commentL10n', array(
|
||||
'submittedOn' => __('Submitted on:')
|
||||
|
Loading…
Reference in New Issue
Block a user