[wp-trac] [WordPress Trac] #20072: get_the_tag_list should accept same arguments as get_the_category_list

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 18 20:32:07 UTC 2012


#20072: get_the_tag_list should accept same arguments as get_the_category_list
----------------------------+-----------------------------
 Reporter:  fireproofsocks  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  General         |    Version:  3.3.1
 Severity:  normal          |   Keywords:
----------------------------+-----------------------------
 It is bad form that the '''get_the_tag_list()''' relies on global
 variables to retrive tag information about a post.  What if you want tag
 information about a post OTHER than the current post?  The
 '''get_the_category_list()''' function is nearly identical in purpose, yet
 it does not suffer from this same restriction.

 Compare the arguments here:
 http://codex.wordpress.org/Function_Reference/get_the_tag_list

 To here:
 http://codex.wordpress.org/Function_Reference/get_the_category_list

 I would expect these functions to have nearly identical inputs.  If I am
 manually iterating over a list of post IDs (i.e. not in the loop), then
 it's a challenge to get the tag information here.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20072>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list