[wp-trac] [WordPress Trac] #19893: get_comments_link() doesn't link properly if there are no responses
WordPress Trac
wp-trac at lists.automattic.com
Wed Jan 25 13:13:12 UTC 2012
#19893: get_comments_link() doesn't link properly if there are no responses
-------------------------+------------------------------
Reporter: cgrymala | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version:
Severity: minor | Resolution:
Keywords: has-patch |
-------------------------+------------------------------
Comment (by cgrymala):
I was going by the code included in wp-includes/theme-compat/comments.php,
which uses `#comments` as an ID for the `<h3>` tag at the top of the
comment list. That `<h3>` is only output when `have_comments()` is `true`
(it's not wrapping anything, and doesn't even exist if there are no
comments).
I realize that that file is deprecated, but if that's the way WordPress
builds the comment area by default, that might be the way a lot of people
are using it.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19893#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list