Opened 14 years ago
Closed 14 years ago
#21685 closed enhancement (fixed)
Twenty Twelve: Code simplifications (and one tabs > spaces issue)
| Reported by: | obenland | Owned by: | lancewillett |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Bundled Theme | Version: | |
| Severity: | minor | Keywords: | has-patch |
| Cc: | Focuses: |
Description
There are a few opportunities to further streamline the code.
I'll separate my proposals by file, to make it easier to leave changes out that don't find approval.
Attachments (7)
Change History (17)
#7
@
14 years ago
- Resolution → fixed
- Status new → closed
I'm going to skip most of the template file indentation fixes -- it's already set up as intended there.
Thanks for all the cleanup, obenland! Great stuff.
#9
@
14 years ago
- Resolution fixed
- Status closed → reopened
21685.2.diff removes a duplicate/misplaced condition in theme-customizer.js
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
21685-indentation.diff: Makes HTML indentation consistent across all template files. Moves to if-endif syntax in
homepage.phpfor consistency.21685-sidebars.diff: Consistently calls sidebars with just the ID. Removes unnecessary closing/opening php tags and makes in-code comment consistent with how it is done in other parts of the Theme
21685-comments.diff: Removes unnecessary closing/opening php tags and indentation
21685-customizer.diff: No need to put the selector in a variable as it will be called only once anyway
21685-navigation.diff: Tabs > spaces
21685-theme-options.diff: No need for extra trues and falses, the conditional already returns the desired result. Capability is set to
'edit_theme_options'by default