[wp-trac] [WordPress Trac] #16696: Most used categories in link edit are all unchecked
WordPress Trac
wp-trac at lists.automattic.com
Mon Feb 28 07:14:38 UTC 2011
#16696: Most used categories in link edit are all unchecked
----------------------------+-----------------------------
Reporter: solarissmoke | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 3.1
Severity: normal | Keywords: has-patch
----------------------------+-----------------------------
There are issues with the "all categories" and "most used" tabs when
editing links:
- Go to edit a link
- Click on "Most used" in the category section. All the listed categories
are unchecked - including the ones that are checked in the "All
Categories" tab. There is no sync between the two.
- Now check a category in the "most used" tab. Go to the "all categories"
tab and you will find that the same category is now checked (as expected).
Now uncheck it from the "all categories" tab. Go to "most used" and it is
still checked there. The sync only works one way ( "most used" -> "all
categories" ).
The first issue is because `wp_popular_terms_checklist()` assumes that
you're using it in the context of a particular post, and sets checkedness
based on whether the `$post` global has that term. If the `$post` global
is empty (as when editing links), nothing is checked. I don't think we
should be using `wp_popular_terms_checklist()` as it's context is for
individual posts.
The second issue is because the IDs on the most used elements are wrong
compared to what the Javascript is looking for.
Patch to follow.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16696>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list