Make WordPress Core

Changeset 546 for trunk/b2comments.php


Ignore:
Timestamp:
11/12/2003 03:22:47 PM (22 years ago)
Author:
emc3
Message:

otaku42's comment moderation patches

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/b2comments.php

    r517 r546  
    1515        $comment_author_url = trim($HTTP_COOKIE_VARS["comment_author_url_".$cookiehash]);
    1616
    17         $comments = $wpdb->get_results("SELECT * FROM $tablecomments WHERE comment_post_ID = $id ORDER BY comment_date");
     17        $comments = $wpdb->get_results("SELECT * FROM $tablecomments WHERE comment_post_ID = $id AND comment_approved = '1' ORDER BY comment_date");
    1818?>
    1919
     
    7474    </p>
    7575
     76<?php
     77if ('none' != get_settings("comment_moderation")) {
     78?>
     79    <p>
     80    <strong>Please note:</strong><br />
     81    This blog uses comment moderation. In other words: your comment will need approval
     82    by the administrator before it will appear in the blog. Approval usually happens
     83    within the next 24 hours. Please send your comment only once. Thank you.
     84    </p>
     85<?php
     86} // comment_moderation != 'none'
     87?>
     88
    7689    <p>
    7790      <input name="submit" type="submit" tabindex="5" value="Say it!" />
Note: See TracChangeset for help on using the changeset viewer.