Opened 16 years ago
Closed 16 years ago
#13783 closed defect (bug) (fixed)
Hidden columns on Taxonomy management pages broken
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 3.0 | Priority: | normal |
| Severity: | major | Version: | 3.0 |
| Component: | Taxonomy | Keywords: | |
| Focuses: | Cc: |
Description
- If you hide columns on a category page, the column headers are not hidden as expected, Row data is hidden however.
- If you hide columns on a category page, The columns are hidden
- The selection for hidden columns is global accross all taxonomies, If you hide a column on the Categories page, it applies to Tags & Custom taxonomies.
- Only the post_tag taxonomy edit page works "correctly"
Issues brought up upon testing of wp-testers: Adding categories (minor issue)
Attachments (1)
Change History (13)
#2
@
16 years ago
The page passed to the AJAX handler is always edit-tags. Compare that to edit.php which passes edit-$post_type. edit-tags.php should probably pass edit-$taxonomy. So, setup the screen similar to how edit.php is handled.
#3
@
16 years ago
That fixes most of it. After hiding a column and then reloading the layout is a bit off.
#4
@
16 years ago
If you hide description, slug, and posts (leaving only the checkbox and name), the table header background color doesn't fill all the way across. Sometimes the lines separating each row are truncated.
#6
@
16 years ago
I think I fixed the layout problems mentioned above. This is looking pretty good now. Please test.
#7
@
16 years ago
$current_screen is not set for Ajax requests, As a result, with WP_DEBUG enabled and adding terms, you'll get a Ajax error screen.. which highlights that $current_screen is null, and as a result, the hidden columns is unavailable.
#8
@
16 years ago
Differnt tax's keep their separate hidden columns however.
Only thing i can see different, is that the id is now 'edit-post_tag' instead of 'edit-tags' and 'edit-category' instead of 'edit-categories', Which means any previous settings for hte hidden columns will go missing. - Maybe not worth considering, or maybe just rename the keys in the db update or soemthing
#10
@
16 years ago
I don't think losing the hidden column settings is a big deal. It's only three columns. That's so few that I doubt most people bother hiding columns like they do with the edit posts screen, which has many more columns.
I've started working on this, but, Am not 100% sure what i'm doing with the current screen code, If someone else feels like stepping in, please go at it, at this rate it'll take me a few days..