[wp-trac] [WordPress Trac] #62870: Autosave Stores Default Taxonomy (Category) but Not Custom Taxonomies
WordPress Trac
noreply at wordpress.org
Mon Jan 27 11:10:20 UTC 2025
#62870: Autosave Stores Default Taxonomy (Category) but Not Custom Taxonomies
--------------------------+-----------------------------
Reporter: praful2111 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Autosave | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
In the WordPress block editor, the autosave feature correctly stores terms
from the default taxonomy {{{category}}}, but it fails to store terms from
custom taxonomies. As a result, custom taxonomy terms assigned to a post
are lost when relying on autosave, unless the post is manually saved.
== Steps to Reproduce:
----
1. Create a custom taxonomy using {{{register_taxonomy()}}} in WordPress
and make sure {{{show_in_rest = true}}}.
2. Assign the custom taxonomy to a post type.
3. Open the block editor for the post type.
4. Assign terms to both the default taxonomy (category) and the custom
taxonomy.
5. Wait for the autosave to trigger.
6. Reload the editor without manually saving the post.
== Expected Behavior:
----
Terms for both the default taxonomy (category) and the custom taxonomy
should be stored and restored by autosave.
== Actual Behavior:
----
Terms for the default taxonomy (category) are stored and restored
correctly.
Terms for the custom taxonomy are not stored, resulting in data loss.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62870>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list