Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#31109 closed defect (bug) (invalid)

cosmetic fixes to comment.php

Reported by: CalEvans Owned by:
Priority: normal Milestone:
Component: Comments Version: 4.2
Severity: normal Keywords:
Cc: Focuses:

Description

While I was working on the unit tests for check_comment, I noticed and fixed a yoda condition. Also added curly braces around some of the IF statements Both of these were to bring the function in line with current coding practices. No logic changes in this one and the unit tests still pass.

=C=

Attachments (1)

wp-includes_comment.php.patch​ (1.3 KB ) - added by CalEvans 12 years ago.

Download all attachments as: .zip

Change History (2)

#1 @ocean90
12 years ago

  • Milestone Awaiting Review
  • Resolution → invalid
  • Status new → closed

Please note that formatting cleanup tickets are generally discouraged. Coding style fixes should be a result of more substantial changes: ​http://make.wordpress.org/core/2011/03/23/code-refactoring/. But thanks for the patch!

Note: See TracTickets for help on using tickets.