mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 15:47:05 +00:00
fix new-fangled multi widgets. Props mdawaffe. see #6022
git-svn-id: https://develop.svn.wordpress.org/trunk@7077 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -122,6 +122,9 @@ endif;
|
||||
|
||||
<?php
|
||||
$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";
|
||||
if ( !empty($_GET['p']) ) {
|
||||
$query_str .= "p=
|
||||
}
|
||||
$query_str = apply_filters('manage_pages_query', $query_str);
|
||||
wp($query_str);
|
||||
|
||||
@@ -160,6 +163,28 @@ if ($posts) {
|
||||
<br style="clear:both;" />
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if ( 1 == count($posts) && isset( $_GET['p'] ) ) {
|
||||
|
||||
$comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = $id AND comment_approved != 'spam' ORDER BY comment_date");
|
||||
if ($comments) {
|
||||
// Make sure comments, post, and post_author are cached
|
||||
update_comment_cache($comments);
|
||||
$post = get_post($id);
|
||||
$authordata = get_userdata($post->post_author);
|
||||
?>
|
||||
<h3 id="comments"><?php _e('Comments') ?></h3>
|
||||
<ol id="the-comment-list" class="list:comment commentlist">
|
||||
<?php
|
||||
$i = 0;
|
||||
foreach ( $comments as $comment ) {
|
||||
_wp_comment_list_item( $comment->comment_ID, ++$i );
|
||||
}
|
||||
echo '</ol>';
|
||||
} // end if comments
|
||||
?>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php include('admin-footer.php'); ?>
|
||||
|
||||
Reference in New Issue
Block a user