[wp-trac] [WordPress Trac] #17336: Can't use get_the_terms() within a function that hooks into publish_post
WordPress Trac
wp-trac at lists.automattic.com
Fri May 6 00:38:24 UTC 2011
#17336: Can't use get_the_terms() within a function that hooks into publish_post
--------------------------+------------------------------
Reporter: defunctlife | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 3.1
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by defunctlife):
Upon some further investigation, global $post; can't be used within
publish_post and get_the_terms() seems to use this.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17336#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list