Skip to main content

1.28.1 - Put the taxonomy fields in the order people work in

· 2 min read
Konstantin Brazhnik
Senior Full Stack Engineer @ Yoko Co

Version 1.28.1 finishes the job 1.28.0 started. The consolidated Taxonomies panel showed its fields in whatever order the taxonomies happened to be registered in, which meant the field an editor used on every single record could sit at the bottom with no way to move it. Administrators can now order them, from the same picker, saved once for everyone.

  • [NEW FEATURE] The Consolidated Taxonomy Panel picker can now order its fields. Each row under In this panel gets and buttons; the chip fields below reorder as you press them, and nothing is stored until Save. Every move is announced to screen readers, and the arrows at the two ends are disabled rather than hidden so rows never shift under the pointer.
  • [NEW FEATURE] The picker is split into In this panel, in the order the panel shows them, and Keeping their own panel. An order nobody can see is an order nobody can fix.
  • [CLI] Adds wp yoko taxonomy_panel order for setting the whole sequence at once — --taxonomies=pet-type,altered,pet-age — for a scripted rollout or a site whose sidebar is too broken to fix from the sidebar.
wp yoko taxonomy_panel add now appends

It used to re-sort the whole panel into registration order every time it ran. That would throw away an order somebody had just set by hand, so it now adds the taxonomy to the end instead. If you have a script that relied on the old normalising behaviour, use order to state the sequence explicitly.

Ticking a taxonomy adds it to the end

Not to its registration slot. Re-sorting on every tick would silently undo an order you had just arranged, which is the one thing an ordering feature must never do.

A panel that has never been ordered by hand is unchanged: it still shows its fields in the order the taxonomies are attached to the post type, which is the order their separate panels were already in.