Make WordPress Core


Ignore:
Timestamp:
10/19/2008 08:11:43 PM (18 years ago)
Author:
azaozz
Message:

Remove the "Post/Page" column when looking at comments on the edit page, fixes #7924

File:
1 edited

Legend:

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

    r9247 r9248  
    19441944                                break;
    19451945                        case 'response':
    1946                                 echo "<td $attributes>\n";
    1947                                 echo "&quot;$post_link&quot; ";
    1948                                 echo '<a href="edit-comments.php?p=' . $post->ID;
    1949                                 if ( !empty($_GET['comment_type']) ) echo '&amp;comment_type=' . htmlspecialchars( $_GET['comment_type'] );
    1950                                 echo '">' . sprintf ( __ngettext('(%s comment)', '(%s comments)', $post->comment_count), $post->comment_count ) . '</a><br />';
    1951                                 echo get_the_time(__('Y/m/d \a\t g:ia'));
    1952                                 echo '</td>';
     1946                                if ( 'single' !== $mode ) {
     1947                                        echo "<td $attributes>\n";
     1948                                        echo "&quot;$post_link&quot; ";
     1949                                        echo '<a href="edit-comments.php?p=' . $post->ID;
     1950                                        if ( !empty($_GET['comment_type']) ) echo '&amp;comment_type=' . htmlspecialchars( $_GET['comment_type'] );
     1951                                        echo '">' . sprintf ( __ngettext('(%s comment)', '(%s comments)', $post->comment_count), $post->comment_count ) . '</a><br />';
     1952                                        echo get_the_time(__('Y/m/d \a\t g:ia'));
     1953                                        echo '</td>';
     1954                                }
    19531955                }
    19541956        }
Note: See TracChangeset for help on using the changeset viewer.