Changeset 7007

Show
Ignore:
Timestamp:
02/24/08 20:42:44 (9 months ago)
Author:
ryan
Message:

Trim long urls. Hide Approve button when listing already Approved comments.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/edit-comments.php

    r7006 r7007  
    151151 
    152152<div style="float: left"> 
     153<?php if ( 'approved' != $comment_status ): ?> 
    153154<input type="submit" value="<?php _e('Approve'); ?>" name="approveit" class="button-secondary" /> 
     155<?php endif; ?> 
    154156<input type="submit" value="<?php _e('Mark as Spam'); ?>" name="spamit" class="button-secondary" /> 
    155157<input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button-secondary" /> 
     
    185187        if ( 'http://' == $author_url ) 
    186188            $author_url = ''; 
     189        $author_url_display = $author_url; 
     190        if ( strlen($author_url_display) > 50 ) 
     191            $author_url_display = substr($author_url_display, 0, 49) . '...'; 
    187192?> 
    188193  <tr id="comment-<?php echo $comment->comment_ID; ?>" class='<?php echo $class; ?>'> 
     
    190195    <td class="comment"> 
    191196    <p class="comment-author"><strong><?php comment_author(); ?></strong><br /> 
    192     <?php if ( !empty($author_url) ) : ?>  
    193     <a href="<?php echo $author_url ?>"><?php echo $author_url; ?></a> | 
     197    <?php if ( !empty($author_url) ) : ?> 
     198    <a href="<?php echo $author_url ?>"><?php echo $author_url_display; ?></a> | 
    194199    <?php endif; ?> 
    195200    <?php if ( !empty($comment->comment_author_email) ): ?>