[wp-trac] [WordPress Trac] #39531: Twenty Fourteen / Fifteen: category count transient allows incorrect preview when only 1 category
WordPress Trac
noreply at wordpress.org
Mon Jan 9 21:57:15 UTC 2017
#39531: Twenty Fourteen / Fifteen: category count transient allows incorrect
preview when only 1 category
---------------------------+-----------------------------
Reporter: lancewillett | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version:
Severity: normal | Keywords: has-patch
Focuses: |
---------------------------+-----------------------------
'''Steps to repeat'''
1. Using a site with only the category, "Uncategorized, switch to Twenty
Fourteen or Twenty Fifteen.
2. Create new post draft, and in the post meta box for Categories add a
new category.
3. Save (don't publish), and Preview.
4. The new category will not be in the preview.
5. If you publish, the end result shows two categories, as expected.
'''What I expected'''
For the post preview to show the 2nd category I added, after saving the
post.
'''What happened instead'''
The category is not shown in the preview. And because of how
`twentyfifteen_categorized_blog()` returns false for 1 or fewer
categories, in this case it won't show the new category.
'''Screenshots'''
(Will attach post ticket creation.)
Note: this occurs in Twenty Sixteen as well (but it's not in the develop
`src` repo that I can see.)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39531>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list