Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#51480 closed defect (bug) (duplicate)

Handle demoted Authors better

Reported by: benmyhre's profile benmyhre Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Users Keywords: reporter-feedback
Focuses: Cc:

Description

Users that have author permissions should be able to no longer be authors, but still have the authorship of a post attributed to them.

Not being a current author in an org does not remove that person's ability of having authored that post.

With current functionality, when you edit a post that had a demoted author, it puts in (seemingly)random user with author permissions and doesn't even make it clear that random person is becoming the author.

Even if the community doesn't feel a demoted author should not be able to retain authorship, this transfer should be more elegant. If that person can't be an author, WordPress breaks its own logic by allowing the demoted author to exist as published author on a post prior to a post being edited and forcing a new author.

Steps

  1. Create post and publish as an Author X.
  2. Delete Author X or change the role of Author X to something that does not have author privileges
  3. Edit post.
  4. Save changes.
  5. Look at author.

Expected results:

Either the author to remain unless manually changed.

Change History (4)

#1 @davidbaumwald
3 years ago

  • Component changed from General to Users
  • Type changed from defect (bug) to enhancement
  • Version set to trunk

#2 @johnbillion
3 years ago

  • Keywords reporter-feedback added
  • Type changed from enhancement to defect (bug)
  • Version trunk deleted

Thanks for the report @benmyhre and welcome.

I've tested this with the block editor, the classic editor, and the Quick Edit functionality and they all appear to work as expected, even though the UI in the block editor does not correctly display the name of the demoted author.

Have you tested this with all your plugins deactivated and one of the default themes such as Twenty Twenty in use?

Cheers!

#3 @johnbillion
3 years ago

Also bear in mind that deleting a user is very different from demoting the user to a role that cannot author content. Deleting a user cannot by its nature result in attribution being retained, but demoting the user should work as expected.

#4 @SergeyBiryukov
3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi there, welcome to WordPress Trac! Thanks for the report.

This appears to be a duplicate of #50754, see also #49269 and #51790.

Note: See TracTickets for help on using tickets.