Ticket #3197 (closed enhancement: fixed)

Opened 5 years ago

Last modified 2 years ago

wp_allow_comment has unused code

Reported by: Nazgul Owned by: anonymous
Priority: normal Milestone:
Component: Optimization Version: 2.0.4
Severity: normal Keywords: has-patch
Cc:

Description

The wp_allow_comment function has some code which is never used (anymore).

$comment_user_domain = apply_filters('pre_comment_user_domain', gethostbyaddr($comment_author_IP) );

Attachments

3197.diff Download (555 bytes) - added by Nazgul 5 years ago.
3197_20.diff Download (585 bytes) - added by Nazgul 5 years ago.

Change History

Nazgul5 years ago

This will also fix #3197.

I meant: This will also fix #1738.

I really should be going to bed...

Nazgul5 years ago

  • Version changed from 2.1 to 2.0.4
  • Milestone changed from 2.1 to 2.0.5

Just noticed 2.0 branch also has this issue.

  • Status changed from new to closed
  • Resolution set to fixed

(In [4293]) remove comment_user_domain cruft. Props Nazgul. fixes #3197

(In [4294]) remove comment_user_domain cruft. Props Nazgul. fixes #3197

  • Milestone 2.0.5 deleted

Milestone 2.0.5 deleted

  • Milestone Unassigned deleted
Note: See TracTickets for help on using tickets.