[wp-trac] Re: [WordPress Trac] #8958: Huge amount rewrite rules for
page revisions after upgrade
WordPress Trac
wp-trac at lists.automattic.com
Sun Jan 25 22:36:32 GMT 2009
#8958: Huge amount rewrite rules for page revisions after upgrade
--------------------------------------------------------------+-------------
Reporter: matthijs | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8
Component: Permalinks | Version: 2.7
Severity: major | Resolution:
Keywords: permalinks, rewrite_rules, revisions needs-patch |
--------------------------------------------------------------+-------------
Comment (by matthijs):
But it should be able to query for the post status right? I don't know the
intricacies of the code, but if you take the above query and take into
account the field post_status == publish, it should be possible to get out
only the currently active ones, I would think.
Maybe as simple as
{{{
WHERE post_type = 'attachment' AND post_parent = %d AND post_status =
publish
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/8958#comment:5>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list