Make WordPress Core

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's profile 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)

39637.patch (627 bytes) - added by mitraval192 8 years ago.
added the slug instead of term_id
class-wp-posts-list-table.php.patch (634 bytes) - added by mitraval192 8 years ago.
added the slug instead of term_id

Download all attachments as: .zip

Change History (7)

@mitraval192
8 years ago

added the slug instead of term_id

@mitraval192
8 years ago

added the slug instead of term_id

#1 @mitraval192
8 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
8 years ago

  • Component changed from Administration to Taxonomy

#3 @swissspidy
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.

#4 @swissspidy
8 years ago

  • Keywords reporter-feedback added
  • Version trunk deleted

#5 @boonebgorges
6 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Closing due to lack of activity.

Note: See TracTickets for help on using tickets.