[wp-trac] [WordPress Trac] #17134: Add support for the_slug() in template tags
WordPress Trac
noreply at wordpress.org
Fri Feb 1 04:37:38 UTC 2013
#17134: Add support for the_slug() in template tags
-----------------------------------+------------------------------
Reporter: tomauger | Owner:
Type: feature request | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Template | Version:
Severity: normal | Resolution:
Keywords: 2nd-opinion has-patch |
-----------------------------------+------------------------------
Comment (by iandunn):
For the same reasons it's not good to access $post->post_title or
$post->post_content directly. Using the API ensures a consistent interface
over time, allows for filters, etc. The patch also allows for calling
arbitrary posts outside the loop via get_slug( $id ).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17134#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list