Make WordPress Core


Ignore:
Timestamp:
01/27/2017 10:08:37 PM (7 years ago)
Author:
davidakennedy
Message:

Bundled Themes: Allow category display in post preview even when only one category

The category is not shown in the preview. And because of how themename_categorized_blog() function in each theme returns false for 1 or fewer categories, and in this case it won't show the new category.

The patch uses is_preview() to fix that in Twenty Fourteen, Fifteen and Seventeen.

Props lancewillett.

Fixes #39531.

File:
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.