#1746 closed defect (bug) (fixed)
Massive Code Cleanup: template-functions-author.php and template-functions-category.php
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | Priority: | lowest | |
| Severity: | trivial | Version: | 1.6 |
| Component: | Administration | Keywords: | bg|has-patch massive-code-cleanup bg|commit |
| Focuses: | Cc: |
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.
patch for WP 1.6 SVN