Opened 10 months ago
Closed 8 months ago
#21685 closed enhancement (fixed)
Twenty Twelve: Code simplifications (and one tabs > spaces issue)
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Bundled Theme | Version: | |
| Severity: | minor | Keywords: | has-patch |
| Cc: | lancewillett |
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)
comment:3
lancewillett
— 10 months ago
In [21616]:
comment:4
lancewillett
— 10 months ago
In [21620]:
comment:5
lancewillett
— 10 months ago
In [21621]:
comment:6
lancewillett
— 10 months ago
In [21623]:
comment:7
lancewillett
— 10 months 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.
comment:8
lancewillett
— 10 months ago
In [21643]:
comment:9
DrewAPicture
— 9 months ago
- Resolution fixed deleted
- Status changed from closed to reopened
21685.2.diff removes a duplicate/misplaced condition in theme-customizer.js
comment:10
lancewillett
— 8 months ago
- Owner set to lancewillett
- Resolution set to fixed
- Status changed from reopened to closed
In [22168]:
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.php for 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