Opened 13 years ago
Closed 13 years ago
#21893 closed enhancement (fixed)
Code formatting and Inline Doc improvements in wp-includes/general-template.php
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | normal | Version: | 1.5 |
Component: | Inline Docs | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
Patch is a coding standards cleanup (whitespace) for wp-includes/general-template.php. Also adds some missing @return statements in PHPDocs.
Attachments (3)
Change History (9)
#3
in reply to:
↑ 2
@
13 years ago
Replying to SergeyBiryukov:
http://wpdevel.wordpress.com/2011/03/23/code-refactoring/
There was a number of code cleanup tickets like #17997, and the consensus was that coding style fixes should be a result of more substantial changes than just improving readability.
Let's focus on PHPDocs here.
Thanks for the link. Makes a lot of sense. I updated the patch focusing only on the PHPDocs.
#4
@
13 years ago
21893.3.patch brings some consistency by reusing the pattern from *_title()
functions:
http://core.trac.wordpress.org/browser/tags/3.4.2/wp-includes/general-template.php#L633
http://wpdevel.wordpress.com/2011/03/23/code-refactoring/
There was a number of code cleanup tickets like #17997, and the consensus was that coding style fixes should be a result of more substantial changes than just improving readability.
Let's focus on PHPDocs here.