#1746 closed defect (bug) (fixed)
Massive Code Cleanup: template-functions-author.php and template-functions-category.php
| Reported by: | markjaquith | Owned by: | markjaquith |
|---|---|---|---|
| Priority: | lowest | Milestone: | |
| Component: | Administration | Version: | 1.6 |
| Severity: | trivial | Keywords: | bg|has-patch massive-code-cleanup bg|commit |
| Cc: | Focuses: |
Description (last modified by )
Part II of my Massive Code Cleanup series. :-) This time the target is template-functions-author.php and template-functitons-category.php
- spaces to tabs
- one newline between functions
- brackets removed for one-line if ()s
- \t\n => \n
- [space]\n => \n
- no cramming two lines into one.
- $id was declared global in a bunch of functions where it did not need to be ( all the ones that just return $authordata->something; )
- if/else bracket tab matching
- stray foreach : endforeach; eliminated
Attachments (2)
Change History (7)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
patch for WP 1.6 SVN