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. git-svn-id: https://develop.svn.wordpress.org/trunk@27303 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f45fa1f0a3
commit
56c79f659c
|
@ -274,7 +274,7 @@ function wp_default_scripts( &$scripts ) {
|
||||||
$scripts->add( 'swfupload-handlers', "/wp-includes/js/swfupload/handlers$suffix.js", array('swfupload-all', 'jquery'), '2201-20110524');
|
$scripts->add( 'swfupload-handlers', "/wp-includes/js/swfupload/handlers$suffix.js", array('swfupload-all', 'jquery'), '2201-20110524');
|
||||||
did_action( 'init' ) && $scripts->localize( 'swfupload-handlers', 'swfuploadL10n', $uploader_l10n );
|
did_action( 'init' ) && $scripts->localize( 'swfupload-handlers', 'swfuploadL10n', $uploader_l10n );
|
||||||
|
|
||||||
$scripts->add( 'comment-reply', "/wp-includes/js/comment-reply$suffix.js" );
|
$scripts->add( 'comment-reply', "/wp-includes/js/comment-reply$suffix.js", array(), false, 1 );
|
||||||
|
|
||||||
$scripts->add( 'json2', "/wp-includes/js/json2$suffix.js", array(), '2011-02-23');
|
$scripts->add( 'json2', "/wp-includes/js/json2$suffix.js", array(), '2011-02-23');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue