[wp-trac] [WordPress Trac] #14370: Custom Taxonomies tagging Attachments (was: Pagination and Custom Taxonomies)
WordPress Trac
wp-trac at lists.automattic.com
Sat Jul 24 10:54:15 UTC 2010
#14370: Custom Taxonomies tagging Attachments
--------------------------+-------------------------------------------------
Reporter: thee17 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 3.0
Severity: major | Keywords: dev-feedback
--------------------------+-------------------------------------------------
Changes (by thee17):
* keywords: => dev-feedback
Comment:
I think I have narrowed down the problem, when calling the taxonomy only a
'published' post_status is being returned, attachments all have the
post_status 'inherit'.
Modifiying the wp-includes/post.php to have 'inherit' as 'public' => true
then it works as expected.
Obviously setting inherit to public is not the best option. Perhaps we
need something when generating a custom tax page that if it is inherit and
an attachment to determine the attachment's attached post's post_status
and us it instead.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14370#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list