Opened 13 years ago
Closed 13 years ago
#23592 closed enhancement (worksforme)
Twenty Thirteen: Hide author from post details when single user site
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 3.6 |
| Component: | Bundled Theme | Keywords: | |
| Focuses: | Cc: |
Description
It's repetitive to show my name next to every single post on my site when I'm the only author.
We should wrap the author code in a is_multi_author() check.
Attachments (1)
Change History (4)
#2
in reply to:
↑ 1
@
13 years ago
Replying to nacin:
This has been done via CSS for the last few default themes.
For anyone else that's wondering: they hook into body_class and add a CSS class to the body when it's single author and then some CSS hides the post author bit.
I think I prefer this solution too as it makes it easier to change this functionality in a child theme as it's just CSS.
I'll re-patch.
#3
@
13 years ago
- Keywords has-patch removed
- Milestone Awaiting Review deleted
- Resolution set to worksforme
- Status changed from new to closed
This code is already in Twenty Thirteen. Fail testing on my part. I forgot that I had forced single author via add_filter( 'is_multi_author', '__return_false' ); in my old theme and that by switching themes, this modification went away.
Everything is working correctly.
This has been done via CSS for the last few default themes.