Opened 6 weeks ago
Last modified 5 weeks ago
#61798 new defect (bug)
Not possible to assign author to unowned post in the primary edit form
Reported by: | mossy2100 | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | minor | Version: | 6.6.1 |
Component: | Editor | Keywords: | has-patch |
Focuses: | administration, coding-standards | Cc: |
Description
If a user is deleted, and their content is not reassigned, any posts of theirs will be trashed and will no longer have an author. Such a post can be restored, but will still not have an author. You can fix this by doing a Quick Edit and assigning the author to yourself (there's no other option).
However, if you go to the Edit page, there is no author shown and no link to click, although there is an invisible button where the author link usually is. This will bring up the author select dialog with your name shown. You can't change it, and if you close the dialog, the author remains unset and empty.
Attachments (2)
Change History (9)
This ticket was mentioned in PR #7123 on WordPress/wordpress-develop by @iflairwebtechnologies.
6 weeks ago
#4
- Keywords has-patch added; needs-patch removed
Fixed: #61798 Not possible to assign author to unowned post in the primary edit form
We have checked the following issue
- When the post is untrash (restored from trash), it does not check whether the authors still exist or not... So in that case, we can check first "if author user no exists, then assign the current user as the author of that post"
By doing this, It will assign the current user as an author to that restored post - only if the author is not present.
Ticket link : https://core.trac.wordpress.org/ticket/61798
#5
@
6 weeks ago
- Focuses coding-standards added
- Version changed from 6.6 to 6.6.1
@mossy2100
Fixed: #61798 Not possible to assign author to unowned post in the primary edit form
We have checked the following issue
- When the post is untrash (restored from trash), it does not check whether the authors still exist or not... So in that case, we can check first "if author user no exists, then assign the current user as the author of that post"
By doing this, It will assign the current user as an author to that restored post - only if the author is not present.
Ticket link : https://core.trac.wordpress.org/ticket/61798
#6
@
6 weeks ago
Seems like a satisfactory solution. I think a more optimal solution would be to ask the administrator who should be the new owner of the post, as a requirement for restoring the post, rather than assuming it's them. But I understand that's more work to implement with perhaps low ROI. Of course, they can change the owner if they want.
Screenshot 2024-08-01 at 3.38.06 PM.png demonstrates the invisible button referenced in the ticket. I've moved this over to the editor component as the change to fix that will need to be made in the Gutenberg repository.
@mossy2100 Are you able to open a ticket on GitHub? This will ensure you are given due credit for discovering the error. https://github.com/wordpress/gutenberg/issues