WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 6 years ago

#3197 closed enhancement (fixed)

wp_allow_comment has unused code

Reported by: Nazgul Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.0.4
Component: Optimization Keywords: has-patch
Focuses: 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 (2)

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

Download all attachments as: .zip

Change History (9)

@Nazgul9 years ago

comment:1 @Nazgul9 years ago

This will also fix #3197.

comment:2 @Nazgul9 years ago

I meant: This will also fix #1738.

I really should be going to bed...

@Nazgul9 years ago

comment:3 @Nazgul9 years ago

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

Just noticed 2.0 branch also has this issue.

comment:4 @markjaquith9 years ago

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

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

comment:5 @markjaquith9 years ago

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

comment:6 @anonymous9 years ago

  • Milestone 2.0.5 deleted

Milestone 2.0.5 deleted

comment:8 @filosofo6 years ago

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