Opened 13 years ago
Closed 13 years ago
#21685 closed enhancement (fixed)
Twenty Twelve: Code simplifications (and one tabs > spaces issue)
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.5 | Priority: | normal |
| Severity: | minor | Version: | |
| Component: | Bundled Theme | Keywords: | has-patch |
| Focuses: | Cc: |
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
@
13 years ago
- Resolution set to fixed
- Status changed from new to 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
@
13 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
21685.2.diff removes a duplicate/misplaced condition in theme-customizer.js
Note: See
TracTickets for help on using
tickets.
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