WordPress.org

Make WordPress Core

Changeset 7078


Ignore:
Timestamp:
02/28/2008 12:13:09 AM (10 years ago)
Author:
ryan
Message:

Show comments when viewing a page in Manage Pages. fixes #6022

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r7077 r7078  
    123123<?php
    124124$query_str = "post_type=page&orderby=menu_order title&what_to_show=posts$post_status_q&posts_per_page=-1&posts_per_archive_page=-1&order=asc";
    125 if ( !empty($_GET['p']) ) {
    126     $query_str .= "p=
    127 }
     125
    128126$query_str = apply_filters('manage_pages_query', $query_str);
    129127wp($query_str);
     
    165163
    166164<?php
    167 if ( 1 == count($posts) && isset( $_GET['p'] ) ) {
     165if ( 1 == count($posts) && isset( $_GET['page_id'] ) ) {
    168166
    169167    $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = $id AND comment_approved != 'spam' ORDER BY comment_date");
  • trunk/wp-admin/includes/template.php

    r7057 r7078  
    406406        if ( $left )
    407407            echo '<strong>';
    408         comments_number("<a href='edit-pages.php?p=$id&amp;c=1' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('0') . '</span></a>', "<a href='edit-pages.php?p=$id&amp;c=1' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('1') . '</span></a>', "<a href='edit-pages.php?p=$id&amp;c=1' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('%') . '</span></a>');
     408        comments_number("<a href='edit-pages.php?page_id=$id&amp;c=1' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('0') . '</span></a>', "<a href='edit-pages.php?page_id=$id&amp;c=1' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('1') . '</span></a>', "<a href='edit-pages.php?page_id=$id&amp;c=1' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('%') . '</span></a>');
    409409        if ( $left )
    410410            echo '</strong>';
Note: See TracChangeset for help on using the changeset viewer.