Make WordPress Core


Ignore:
Timestamp:
02/24/2008 04:51:47 AM (18 years ago)
Author:
ryan
Message:

Comment detail and list views

File:
1 edited

Legend:

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

    r6999 r7003  
    3232
    3333require_once('admin-header.php');
    34 if (empty($_GET['mode'])) $mode = 'view';
    35 else $mode = attribute_escape($_GET['mode']);
     34
     35if ( empty($_GET['mode']) )
     36    $mode = 'detail';
     37else
     38    $mode = attribute_escape($_GET['mode']);
    3639?>
    3740
     
    100103<input type="hidden" name="mode" value="<?php echo $mode; ?>" />
    101104
    102 <p><a href="?mode=view"><?php _e('Detail View') ?></a> | <a href="?mode=edit"><?php _e('List View') ?></a></p>
     105<p><a href="?mode=detail"><?php _e('Detail View') ?></a> | <a href="?mode=list"><?php _e('List View') ?></a></p>
    103106
    104107<?php
     
    180183    <?php comment_author_email_link() ?> |
    181184    <?php endif; ?>
    182     <a href="edit-comments.php?s=<?php comment_author_IP() ?>&amp;mode=edit"><?php comment_author_IP() ?></a>
    183     <p><?php comment_excerpt(); ?></p>
     185    <a href="edit-comments.php?s=<?php comment_author_IP() ?>&amp;mode=detail"><?php comment_author_IP() ?></a>
     186    <p><?php if ( 'list' == $mode ) comment_excerpt(); else comment_text(); ?></p>
    184187    <?php printf(__('From %1$s, %2$s at %3$s'), $post_link, get_the_time(get_option('date_format')), get_the_time()) ?>
    185188    </td>
Note: See TracChangeset for help on using the changeset viewer.