WordPress.org

Make WordPress Core

Ticket #13812: custom-comments-avoidance.diff

File custom-comments-avoidance.diff, 613 bytes (added by jdub, 4 years ago)

avoid rendering custom comments as pingbacks (diff against trunk)

  • wp-content/themes/twentyten/functions.php

     
    341341                </div><!-- .reply --> 
    342342        </div><!-- #comment-##  --> 
    343343 
    344         <?php else : ?> 
     344        <?php elseif ( in_array($comment->comment_type, array('pingback', 'trackback')) ) : ?> 
    345345        <li class="post pingback"> 
    346346                <p><?php _e( 'Pingback:', 'twentyten' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __('(Edit)', 'twentyten'), ' ' ); ?></p> 
    347347        <?php endif;