WordPress/gutenberg

Author's Username is missing from Author dropdown.

開放

#17,364 建立於 2019年9月6日

 (10 則留言) (2 個反應) (0 位負責人)JavaScript (3,893 個分叉)batch import
Good First IssueNeeds Design FeedbackREST API Interaction[Feature] Document Settings[Type] Enhancement

倉庫指標

星標
 (9,607 顆星)
PR 合併指標
 (平均合併 12天 18小時) (30 天內合併 509 個 PR)

描述

Describe the bug In the classic editor, the author drop down included their name followed by their username in parentheses. This is needed when there are two or more people with the same name, or one user that has different kinds of access for testing things. Gutenberg however only shows the author's name.

To reproduce Steps to reproduce the behavior:

  1. Create a new post using the Classic editor.
  2. Click on the author drop down and you'll see users in this format: Name (username)
  3. Create a new post using the Gutenberg editor.
  4. Click on the author drop down and you'll see users in this format: Name

Expected behavior I'd see users in this format: Name (username)

Screenshots Gutenberg Classic Editor Quick Edit Post

Desktop (please complete the following information):

  • OS: MacOS 10.14.6 (18G95)
  • Browser Safari / Firefox / Chrome
  • Basically everything as it's a WordPress concern.

Additional context I marked this as a bug because the author drop down is consistent across the backend, except for in Gutenberg. If you were to quick edit a post or page, the format would match what I'm expecting. Gutenberg seems to be breaking the consistency.

Additionally my client has nearly 150 users so what we have today in Gutenberg doesn't scale well if we just assume there will never be two users with the same name.

I've also dug for hooks or filters to try and customize what appears in the author drop down but have had no luck.

貢獻者指南