Opened 8 years ago
Closed 6 years ago
#39637 closed defect (bug) (worksforme)
Wrong term taxonomy link in custom taxonomy admin column
Reported by: | fulippo | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Taxonomy | Keywords: | has-patch reporter-feedback |
Focuses: | administration | Cc: |
Description
When setting a custom taxonomy to have terms displayed in admin columns of posts list screens (show_admin_column => 1) the term link uses the slug instead of term_id to filter posts.
The behaviour is different from the dropdown which seems to work as expected.
The issue:
Term taxonomy link contains slug instead of term_id:
wp-admin/includes/class-wp-posts-list-table.php#L1099
Attachments (2)
Change History (7)
#3
@
8 years ago
The issue: Term taxonomy link contains slug instead of term_id
Why exactly is this an issue?
Links for the category
taxonomy look like this: wp-admin/edit.php?category_name=uncategorized
. For tags wp-admin/edit.php?tag=foo
and for the custom taxonomy foo
it is wp-admin/edit.php?foo=baz
Filtering seems to work as expected.
The behaviour is different from the dropdown which seems to work as expected.
The category dropdown uses a cat=<id>
parameter, which also seems to work fine.
added the slug instead of term_id