Problems when simultaneously editing multiple post types in multiple windows
-
Thank you for your work on this plugin, I have found it to be helpful.
I believe editing multiple post types in multiple windows can delete/overwrite the incorrect post types. Here’s how this can happen:
In Custom Post Type UI 0.8, when I click:
Custom Post Types / Manage Post Types / Edit
this opens an edit screen for the selected post type. In the URL for this screen, I believe the post type to be edited gets selected via an index URL parameter, for instance:
&edittype=2
Then when I click “Save Custom Post Type” on the edit screen, this returns me to the “Manage Post Types” screen, and the post types have been rearranged (the post type that was just edited is moved to the bottom of the list). This means the post types all have new indexes.A common use case for me is simultaneously editing multiple data items in multiple windows (for example, using firefox’s right-click “Open Link In New Tab” feature on the “Edit” links for multiple post types). Because of the way Custom Post Type UI currently works, I believe this can cause data loss: when I click “Save Custom Post Type” in one window, the post type indices are rearranged in the database; then when I click “Save Custom Post Type” in the next window (which now has an incorrect index parameter in the URL), an incorrect post type gets edited. I imagine the same behavior may occur when editing multiple taxonomies simultaneously, though I have not tried this.
I believe this behavior just caused a few of my post types to get overwritten with incorrect data when I edited multiple post types simultaneously in multiple windows. I was able to restore my post type data by deleting the incorrect post types and re-creating them. I found this a disturbing and confusing experience.
If I have understood this issue correctly, this seems like a fairly serious problem. I’m not sure what the solution would be. An easy first step would be adding a prominent warning to the Manage Post Types screen (and perhaps Manage Taxonomies too) warning against editing multiple post types / taxonomies simultaneously in multiple windows.
- The topic ‘Problems when simultaneously editing multiple post types in multiple windows’ is closed to new replies.