[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 21:15:27 UTC 2017


#39531: Twenty Fourteen, Fifteen, Seventeen: allow category display in post preview
even when only 1 category
---------------------------+------------------
 Reporter:  lancewillett   |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  4.8
Component:  Bundled Theme  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:
---------------------------+------------------
Description changed by lancewillett:

Old description:

> '''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'''
> Attached.
>
> Note: this occurs in Twenty Sixteen as well (but it's not in the develop
> `src` repo that I can see.)

New description:

 '''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'''
 Attached.

 Note: this occurs in Twenty Sixteen as well, bug logged in GitHub:
 https://github.com/WordPress/twentysixteen/pull/492

--

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39531#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list