[wp-trac] [WordPress Trac] #52314: the HTML <title> tag for Edit Post should include the post's title

WordPress Trac noreply at wordpress.org
Sat Jun 5 15:56:58 UTC 2021


#52314: the HTML <title> tag for Edit Post should include the post's title
-------------------------------------+-------------------------------------
 Reporter:  skierpage                |       Owner:  alexstine
     Type:  defect (bug)             |      Status:  accepted
 Priority:  normal                   |   Milestone:  5.8
Component:  Editor                   |     Version:  5.6
 Severity:  minor                    |  Resolution:
 Keywords:  has-patch has-           |     Focuses:  accessibility,
  screenshots needs-testing          |  administration
-------------------------------------+-------------------------------------

Comment (by sabernhardt):

 I think 'Edit "Untitled"' is appropriate when a post is published without
 a title, so I made an additional option
 [attachment:"52314-alternate.diff"].
 * If adding a new post, the title tag maintains the pre-existing "Add New
 Post" text.
 * If the post is already published, the new HTML title matches the
 [https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes
 /class-wp-posts-list-table.php?rev=50804#L1416 aria-label for each Edit
 link] that leads to the post editor.
 * If a published post does not have a title when the post editor loads,
 'Edit "Untitled"' calls more attention to the missing title (without a
 formal error message).

 However, if you disagree with me, 52314-3.patch simply includes some
 changes for translation: translating the "Untitled" string, plus matching
 the new Edit title to the aria-label text.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52314#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list