Opened 16 years ago
Closed 16 years ago
#4147 closed defect (bug) (fixed)
Separate post and link category management and taxonomy
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.3 | Priority: | high |
Severity: | normal | Version: | 2.2 |
Component: | Administration | Keywords: | category link post tag |
Focuses: | Cc: |
Description
Since we didn't go the route of having the complete pool of categories show up on the write post and add link pages back in 2.1, the unified management UI doesn't make as much sense. It is a source of confusion since the post and link categories are united under Manage->Categories but separated everywhere else. Instead let's resurrect link category management under Blogroll->Categories. To accomplish this, we will need to add some API and add a new taxonomy type.
- TAXONOMY_LINK_CATEGORY will be added as a valid value for the type bitfield in the categories table
- wp_create_link_category() will create a new link category. It will call wp_insert_category() to do the heavy lifting and pass the type as TAXONOMY_LINK_CATEGORY. wp_insert_category() will handle create a new category object if one doesn't exist or setting the type on an existing category object.
- wp_delete_link_category() will delete a link category. The link logic in wp_delete_category() should be split out into wp_delete_link_category(). Each call should delete the underlying category object only if the bitfield is clear. Otherwise it should just remove the appropriate bit from the field.
- Refactor wp-admin/categories.php so that it can manage both link and post categories and be presented under separate tabs in the admin UI.
- Possibly break the non-idempotent operations in wp-admin/categories.php into wp-admin/category.php and modify them to accommodate link and post categories.
Attachments (2)
Change History (6)
#1
@
16 years ago
I'll argue the opposite. Link and Post Categories should be blended even more, and all categories should be displayed on both the Write Post and Add Links pages.
Okay, take tags out, fine, but I see no reason to not allow both posts and links to be in the same categories. The reason it's so confusing is because of the separation. Remove the separation, and the confusion goes away.
#2
@
16 years ago
3 recent threads on WP-Hackers which are related to this:
http://www.nabble.com/Grab-a-seat.-On-Delaying-2.2%2C-separating-tables-tf3578628.html
http://www.nabble.com/A-%22terms%22-table-tf3580889.html
http://www.nabble.com/Taxonomy-Schema-Proposal-tf3582783.html
Introduce TAXONOMY_LINK_CATEGORY