#14935 closed defect (bug) (worksforme)
Taxonomy Permalinks Broken (Matt's Community Tags)
Reported by: | ryan | Owned by: | scribu |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.1 |
Component: | Taxonomy | Keywords: | |
Focuses: | Cc: |
Description
Taxonomy permalinks broke in trunk sometime since r15490. Example from Matt's blog:
http://ma.tt/person/stephane-daury/
Test with this plugin:
Change History (14)
#3
@
14 years ago
Here's $wp->query_vars for the /person/stephane-daury/ request.
array(3) { ["people"]=> string(14) "stephane-daury" ["taxonomy"]=> string(6) "people" ["term"]=> string(14) "stephane-daury" }
#4
@
14 years ago
The problem is that it's supposed to look for attachments, so these extra args would be necessary:
'post_type' => 'attachment', 'post_status' => 'inherit'
I have no idea why it worked previously.
#6
@
14 years ago
This is the SQL generated by the 3.0 branch:
SELECT SQL_CALC_FOUND_ROWS wp_posts . * FROM wp_posts WHERE 1=1 AND wp_posts.ID IN ( 42447 ) AND wp_posts.post_type IN ( 'post', 'page', 'attachment' ) AND ( wp_posts.post_status = 'publish' OR wp_posts.post_author =1 AND wp_posts.post_status = 'private' ) ORDER BY wp_posts.post_date DESC LIMIT 0 , 10
and this is in trunk:
SELECT SQL_CALC_FOUND_ROWS wp_posts . * FROM wp_posts WHERE 1 =1 AND wp_posts.ID IN ( 42447 ) AND wp_posts.post_type IN ( 'post', 'page', 'attachment' ) AND ( wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private' ) ORDER BY wp_posts.post_date DESC LIMIT 0 , 10
neither of which work with the Matt's Community Tags plugin out of the box. This leads me to believe that Matt has some additional code running on his site, which doesn't work in trunk, for some reason.
Note: See
TracTickets for help on using
tickets.
For me they stop working at r15613.