Make WordPress Core

Changeset 7429


Ignore:
Timestamp:
03/20/2008 10:01:27 PM (16 years ago)
Author:
ryan
Message:

Fix dash markup when there's only one comment. Props mdawaffe. fixes #6306

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r7391 r7429  
    285285                <blockquote><p>&#8220;<?php comment_excerpt(); ?>&#8221;</p></blockquote>
    286286                <p class='comment-meta'><?php echo $comment_meta; ?></p>
    287 
     287<?php
     288                if ( $comments_query->comment_count > 1 ) : ?>
    288289                <ul id="dashboard-comments-list">
    289290<?php
    290             else :
     291                endif; // comment_count
     292            else : // is_first
    291293?>
    292294
    293295                    <li class='comment-meta'><?php echo $comment_meta; ?></li>
    294296<?php
    295             endif;
     297            endif; // is_first
    296298        }
    297 ?>
    298 
     299
     300        if ( $comments_query->comment_count > 1 ) : ?>
    299301                </ul>
    300 
    301302<?php
     303        endif; // comment_count;
    302304
    303305    }
Note: See TracChangeset for help on using the changeset viewer.