[wp-trac] [WordPress Trac] #17763: comments_popup_link() need a get_* version

WordPress Trac wp-trac at lists.automattic.com
Sat Jun 25 03:02:43 UTC 2011


#17763: comments_popup_link() need a get_* version
-------------------------+-----------------------------
 Reporter:  dd32         |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Template     |     Version:  3.2
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+-----------------------------

Comment (by MeanderingCode):

 I would like to make a case for adding a piece of functionality related to
 post_types and comment support:

 If a post type does not have comment support, nothing should be output
 instead of a "Comments Off" message.

 This would require:
 * Checking comments support for $post->post_type, return empty string or
 null if no comments support
 * Changing logic in twenty-ten/loop.php before comments_popup_link() is
 called to determine printing the | separator

 Am I supported in thinking this makes sense?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17763#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list