Opened 3 months ago

Closed 3 months ago

#23592 closed enhancement (worksforme)

Twenty Thirteen: Hide author from post details when single user site

Reported by: Viper007Bond Owned by:
Priority: normal Milestone:
Component: Bundled Theme Version: trunk
Severity: normal Keywords:
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)

23592.patch (675 bytes) - added by Viper007Bond 3 months ago.

Download all attachments as: .zip

Change History (4)

comment:1 follow-up: ↓ 2   nacin3 months ago

This has been done via CSS for the last few default themes.

comment:2 in reply to: ↑ 1   Viper007Bond3 months 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.

  • 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.

Note: See TracTickets for help on using tickets.