WordPress.org

Make WordPress Core

Ticket #21499: 21499.3.patch

File 21499.3.patch, 1.2 KB (added by SergeyBiryukov, 6 years ago)
  • wp-admin/js/comment.js

     
    11jQuery(document).ready( function($) {
    22
     3        postboxes.add_postbox_toggles('comment');
     4
    35        var stamp = $('#timestamp').html();
    46        $('.edit-timestamp').click(function () {
    57                if ($('#timestampdiv').is(":hidden")) {
  • wp-includes/script-loader.php

     
    376376                        'comma' => _x( ',', 'tag delimiter' ),
    377377                ) );
    378378
    379                 $scripts->add( 'link', "/wp-admin/js/link$suffix.js", array('wp-lists', 'postbox'), false, 1 );
     379                $scripts->add( 'link', "/wp-admin/js/link$suffix.js", array( 'wp-lists', 'postbox' ), false, 1 );
    380380
    381                 $scripts->add( 'comment', "/wp-admin/js/comment$suffix.js", array('jquery') );
     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(
    384384                        'submittedOn' => __('Submitted on:')