[wp-trac] [WordPress Trac] #56819: inline-edit-post.js looks up page author name incorrectly when author no longer has edit capabilities

WordPress Trac noreply at wordpress.org
Thu Oct 13 16:16:54 UTC 2022


#56819: inline-edit-post.js looks up page author name incorrectly when author no
longer has edit capabilities
----------------------------+-----------------------------
 Reporter:  OllieJones      |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  trunk
 Severity:  normal          |   Keywords:
  Focuses:  ui, javascript  |
----------------------------+-----------------------------
 6.1RC1  --- this isn't a regression from previous versions.

 The inline edit feature on the the dashboard's All Pages panel doesn't
 work quite right. (It's fine on the All Posts panel.) The flaw crops up
 when Quick Editing a page for which the author no longer has edit
 privileges.

 To reproduce: running logged in as Administrator or Editor:

 * Create a user with the Author role, or some other role, but not
 Subscriber.
 * Create (or choose an existing) page. On All Pages, with Quick Edit, set
 that new user as the author of that page.
 * Edit that user to change the role to Subscriber.
 * On All Pages, open Quick Edit for that page.
 * Observe that the pulldown `<select>` menu for choosing the author
 incorrectly shows a blank label rather than the author's name.

 It should show the (newly deauthorized) author's name. On the All Posts
 panel, it does show that name.

 This problem shows up on even a fresh install without plugins and the
 default theme.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56819>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list