[wp-trac] Re: [WordPress Trac] #4699: Custom Permalinks Containing
Categories Are Broken for Attachments
WordPress Trac
wp-trac at lists.automattic.com
Thu Mar 20 19:47:56 GMT 2008
#4699: Custom Permalinks Containing Categories Are Broken for Attachments
---------------------------------------------+------------------------------
Reporter: mtekk | Owner: markjaquith
Type: defect | Status: assigned
Priority: normal | Milestone: 2.5
Component: General | Version: 2.2.1
Severity: blocker | Resolution:
Keywords: attachment, permalink, category |
---------------------------------------------+------------------------------
Comment (by ryan):
Even if you skip the category_name query whenever the request is_singular,
the permalink will break because %category% gobbles up slashes and
prevents the rewrite rules from recognizing the attachment. Instead of
doing an attachment query, a post query is done. We'd have to change
single post queries to look for both posts and attachments.
--
Ticket URL: <http://trac.wordpress.org/ticket/4699#comment:7>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list