WordPress.org

Make WordPress Core

Changeset 9037


Ignore:
Timestamp:
09/30/08 17:27:15 (7 years ago)
Author:
ryan
Message:

Hide reply link by default. Enable with JS. Props Viper007Bond. see #7635

Location:
trunk/wp-includes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment-template.php

    r8970 r9037  
    10381038        <?php echo apply_filters('comment_text', get_comment_text()) ?> 
    10391039 
    1040         <div class='reply'> 
     1040        <div class="reply" style="display:none"> 
    10411041        <?php echo comment_reply_link(array('add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['depth'])) ?> 
    10421042        <?php if ( 'ul' == $args['style'] ) : ?> 
  • trunk/wp-includes/js/comment-reply.js

    r8877 r9037  
    3434    document.getElementById("comment-parent").value = "0"; 
    3535} 
     36 
     37jQuery(document).ready(function($){ 
     38    $(".thread-odd").find("div.reply").css("display", "block"); 
     39    $(".thread-even").find("div.reply").css("display", "block"); 
     40}); 
  • trunk/wp-includes/script-loader.php

    r9036 r9037  
    142142    $scripts->add( 'jquery-ui-dialog', '/wp-includes/js/jquery/ui.dialog.js', array('jquery-ui-resizable', 'jquery-ui-draggable'), '1.5.2' ); 
    143143 
    144     $scripts->add( 'comment-reply', '/wp-includes/js/comment-reply.js', false, '20080828'); 
     144    $scripts->add( 'comment-reply', '/wp-includes/js/comment-reply.js', array('jquery'), '20080929'); 
    145145 
    146146    if ( is_admin() ) { 
Note: See TracChangeset for help on using the changeset viewer.