[wp-trac] [WordPress Trac] #40436: Custom taxonomy terms order lost under wp-admin/post.php edit action for a custom post type
WordPress Trac
noreply at wordpress.org
Sat Apr 7 18:08:37 UTC 2018
#40436: Custom taxonomy terms order lost under wp-admin/post.php edit action for a
custom post type
--------------------------------------+------------------------------
Reporter: solo14000 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: administration
--------------------------------------+------------------------------
Changes (by soulseekah):
* keywords: => has-patch has-unit-tests
Comment:
Wow this was a tough one! Adding default sort order for taxonomies with
the set sort flag was straightforward. But then `update_object_term_cache`
popped up. What it did was fetch all the taxonomy terms for an object
ordering them by name. Had to split this logic into two parts, one for
fetching name-sorted taxonomies, one for fetching term_order-sorted
taxonomies.
Distantly related to #41679
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40436#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list