From 119280586f66cb618aea0bcc6df726df4220e087 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@9037 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 c655412006..0b087fde04 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 e234d9e356..6f302274fd 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 4028192d96..5058e2314e 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' );