Opened 14 years ago
Closed 14 years ago
#21893 closed enhancement (fixed)
Code formatting and Inline Doc improvements in wp-includes/general-template.php
| Reported by: | c3mdigital | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Inline Docs | Version: | 1.5 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
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
@
14 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
@
14 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
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.