Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#23592 closed enhancement (worksforme)

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

Reported by: viper007bond's profile Viper007Bond Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.6
Component: Bundled Theme Keywords:
Focuses: Cc:


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 11 years ago.

Download all attachments as: .zip

Change History (4)

11 years ago

#1 follow-up: @nacin
11 years ago

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

#2 in reply to: ↑ 1 @Viper007Bond
11 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 @Viper007Bond
11 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.

Note: See TracTickets for help on using tickets.