Make WordPress Core

Opened 6 years ago

Last modified 9 months ago

#43613 new defect (bug)

Default post format setting does not respect theme support

Reported by: seanleavey's profile seanleavey Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Post Formats Keywords: needs-patch
Focuses: administration Cc:

Description

In options-writing.php, the Default Post Format setting does not check whether the current theme supports the built-in formats. Would it not be more intuitive if only the formats supported by the current theme were in the list to select? Then a description could be added underneath to say "these are the formats supported by the currently selected theme".

Alternatively, there could be a filter added to get_post_format_strings in wp-includes/post-formats.php to allow themes/plugins to remove available formats from this list.

Change History (4)

#1 @pento
5 years ago

  • Version trunk deleted

#2 @MadtownLems
9 months ago

  • Version set to trunk

I just came here to submit this exact issue. None of our themes use Post Formats (and I think they're becoming rarer and rarer). When users visit Settings->Writing, though, they are presented with a variety of Post Formats that don't even really exist and mean nothing, and thus a confusing setting that has no impact.

I think the Default Post Format option should only exist if the current theme supports Post Formats.

#3 follow-up: @sabernhardt
9 months ago

  • Keywords needs-patch added
  • Version trunk deleted

I removed the version again because the issue is not new to trunk (see Trac version in the handbook). The ticket was opened when 4.9 was available, and this could go all the way back to 3.6.

#4 in reply to: ↑ 3 @MadtownLems
9 months ago

Replying to sabernhardt:

I removed the version again because the issue is not new to trunk

Ah perfect, thank you for the explanation!

Note: See TracTickets for help on using tickets.