The MU forums have moved to WordPress.org

Not show IP in mail comment notification (9 posts)

  1. conpeo
    Member
    Posted 17 years ago #

    I have success to disable to show IP in Comments - Awaiting Moderation (by edit wp-admin/edit-comments.php & wp-admin/moderation.php)

    How to disable show IP Addr. in Mail Notification of comment awaiting moderation?

    I should edit core files & without plugin.

  2. drmike
    Member
    Posted 17 years ago #

    I was thinking that it would be in wp-admin/comment.php buit I don't see it right off either.

    I'll check next time someone leaves me a comment on one of my blogs.

  3. conpeo
    Member
    Posted 17 years ago #

    I got it. wp-includes/pluggable.php about line 400+
    I show no IP & function Approve/Delete/Spam, because when blog owner received email notify, user cannot direct click the function above, it show header error.

  4. drmike
    Member
    Posted 17 years ago #

    You lost me. Are you saying you get that error when you change that bit of code? If so, I wouldn't removet the code then. Just put in a line replaceing the IP address output into something like 127.0.0.1.

  5. conpeo
    Member
    Posted 17 years ago #

    no, user click from email notify function Approve/Delete/Spam and get the error before change the code.
    so I disable these functions.

  6. drmike
    Member
    Posted 17 years ago #

    Someone please bump this for me in about an hour or so and I'll take a look. I'm at a standing terminal and can't research code currently.

  7. andrea_r
    Moderator
    Posted 17 years ago #

    bumped. ;)

  8. drmike
    Member
    Posted 17 years ago #

    And I'm still standing. It's 1 in the afternoon. You would have thought these students would be off getting drunk or partying by now.

  9. drmike
    Member
    Posted 17 years ago #

    OK, got a regular terminal and can install Ultraedit.

    Open up the file and find line 356. Looks like this:

    if ('comment' == $comment_type) {

    In the following code, note where it says in four places:

    $comment->comment_author_IP

    I would replace that with something like:

    "0.0.0.0"

    and try that. Please include the double quotes. I would backup the file first though just in case it didn't work.

    You could probably do it where the comment is made but I would do it here just in case you want to go back.

    I do hope this helps and I do apoligize that it took a bit to dig out.

About this Topic