WordPress.org

Make WordPress Core

Changeset 17722


Ignore:
Timestamp:
04/27/11 04:38:36 (3 years ago)
Author:
lancewillett
Message:

Twenty Eleven: set default case for switch statement in the twentyeleven_comment(), props greenshady - see #17198

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/functions.php

    r17721 r17722  
    468468    $GLOBALS['comment'] = $comment; 
    469469    switch ( $comment->comment_type ) : 
    470         case '' : 
     470        case 'pingback' : 
     471        case 'trackback' : 
     472    ?> 
     473    <li class="post pingback"> 
     474        <p><?php _e( 'Pingback:', 'twentyeleven' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', 'twentyeleven' ), ' ' ); ?></p> 
     475    <?php 
     476            break; 
     477        default : 
    471478    ?> 
    472479    <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>"> 
     
    509516    <?php 
    510517            break; 
    511         case 'pingback' : 
    512         case 'trackback' : 
    513     ?> 
    514     <li class="post pingback"> 
    515         <p><?php _e( 'Pingback:', 'twentyeleven' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', 'twentyeleven' ), ' ' ); ?></p> 
    516     <?php 
    517             break; 
    518518    endswitch; 
    519519} 
Note: See TracChangeset for help on using the changeset viewer.