Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#31109 closed defect (bug) (invalid)

cosmetic fixes to comment.php

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

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 10 years ago.

Download all attachments as: .zip

Change History (2)

#1 @ocean90
10 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to 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.