From eef17ba0a552331172dba606818c62ea8fce521f Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 30 Sep 2008 17:27:15 +0000 Subject: [PATCH] Hide reply link by default. Enable with JS. Props Viper007Bond. see #7635 git-svn-id: http://svn.automattic.com/wordpress/trunk@9037 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment-template.php | 2 +- wp-includes/js/comment-reply.js | 7 ++++++- wp-includes/script-loader.php | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index c65541200..0b087fde0 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -1037,7 +1037,7 @@ class Walker_Comment extends Walker { -
+ diff --git a/wp-includes/js/comment-reply.js b/wp-includes/js/comment-reply.js index e234d9e35..6f302274f 100644 --- a/wp-includes/js/comment-reply.js +++ b/wp-includes/js/comment-reply.js @@ -32,4 +32,9 @@ function cancelCommentReply(respondId, respondRoot) { document.location.href = "#respond"; document.getElementById("comment").focus(); document.getElementById("comment-parent").value = "0"; -} \ No newline at end of file +} + +jQuery(document).ready(function($){ + $(".thread-odd").find("div.reply").css("display", "block"); + $(".thread-even").find("div.reply").css("display", "block"); +}); \ No newline at end of file diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index 4028192d9..5058e2314 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -141,7 +141,7 @@ function wp_default_scripts( &$scripts ) { $scripts->add( 'jquery-ui-resizable', '/wp-includes/js/jquery/ui.resizable.js', array('jquery-ui-core'), '1.5.2' ); $scripts->add( 'jquery-ui-dialog', '/wp-includes/js/jquery/ui.dialog.js', array('jquery-ui-resizable', 'jquery-ui-draggable'), '1.5.2' ); - $scripts->add( 'comment-reply', '/wp-includes/js/comment-reply.js', false, '20080828'); + $scripts->add( 'comment-reply', '/wp-includes/js/comment-reply.js', array('jquery'), '20080929'); if ( is_admin() ) { $scripts->add( 'ajaxcat', '/wp-admin/js/cat.js', array( 'wp-lists' ), '20071101' );