Make WordPress Core

Changeset 27303


Ignore:
Timestamp:
02/26/2014 10:26:10 PM (11 years ago)
Author:
nacin
Message:

Move comment-reply.js to the footer.

While it can function before the page is loaded, it works by moving the comment form, which is usually toward the bottom of the page. Please report any contraindications on the ticket.

props obenland.
fixes #12641.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r27280 r27303  
    275275    did_action( 'init' ) && $scripts->localize( 'swfupload-handlers', 'swfuploadL10n', $uploader_l10n );
    276276
    277     $scripts->add( 'comment-reply', "/wp-includes/js/comment-reply$suffix.js" );
     277    $scripts->add( 'comment-reply', "/wp-includes/js/comment-reply$suffix.js", array(), false, 1 );
    278278
    279279    $scripts->add( 'json2', "/wp-includes/js/json2$suffix.js", array(), '2011-02-23');
Note: See TracChangeset for help on using the changeset viewer.