WordPress.org

Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 7 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 10 years ago.
3197_20.diff (585 bytes) - added by Nazgul 10 years ago.

Download all attachments as: .zip

Change History (9)

@Nazgul
10 years ago

#1 @Nazgul
10 years ago

This will also fix #3197.

#2 @Nazgul
10 years ago

I meant: This will also fix #1738.

I really should be going to bed...

@Nazgul
10 years ago

#3 @Nazgul
10 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.

#4 @markjaquith
10 years ago

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

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

#5 @markjaquith
10 years ago

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

#6 @anonymous
10 years ago

  • Milestone 2.0.5 deleted

Milestone 2.0.5 deleted

#8 @filosofo
7 years ago

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