[wp-trac] [WordPress Trac] #39531: Twenty Fourteen, Fifteen, Seventeen: allow category display in post preview even when only 1 category
WordPress Trac
noreply at wordpress.org
Fri Jan 27 22:08:39 UTC 2017
#39531: Twenty Fourteen, Fifteen, Seventeen: allow category display in post preview
even when only 1 category
---------------------------+----------------------------
Reporter: lancewillett | Owner: davidakennedy
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.8
Component: Bundled Theme | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
---------------------------+----------------------------
Changes (by davidakennedy):
* owner: => davidakennedy
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"40023"]:
{{{
#!CommitTicketReference repository="" revision="40023"
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.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39531#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list