[wp-trac] [WordPress Trac] #48861: Twenty Seventeen inserts an empty .entry-footer content for custom post type posts with no taxonomy
WordPress Trac
noreply at wordpress.org
Tue Dec 3 09:10:51 UTC 2019
#48861: Twenty Seventeen inserts an empty .entry-footer content for custom post
type posts with no taxonomy
--------------------------+-----------------------------
Reporter: umchal | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Hi there,
Just reporting that the Twenty Seventeen theme v2.2 checks whether the
entry footer is empty in order to avoid a huge blank space.
''/inc/template-tags.php''
{{{#!php
<?php
// We don't want to output .entry-footer if it will be
empty, so make sure its not.
if ( ( ( twentyseventeen_categorized_blog() &&
$categories_list ) || $tags_list ) || get_edit_post_link() ) {
}}}
However, this check fails for cases of posts of a custom post type with no
taxonomy terms associated and a big empty space gets inserted at the
bottom of the singular page.
`$categories_list` is not empty as the string value `Uncategorized` is
assigned by `get_the_category_list()` (/wp-includes/category-template.php)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48861>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list