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

WordPress Trac noreply at wordpress.org
Tue Jun 8 08:39:07 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'm unsure whether including the post type would help with a screen
 reader, though keeping the page title short would be better in the case of
 seeing multiple tabs (comment:4). (If we want to add the type, I don't
 know how to use the `edit_item` label.)

 The post type was already included in the current, non-unique title. So
 the latest patch checks to verify the post title is not empty before
 replacing that version with `Edit ""` (in themes other than Twenty Twenty-
 One).

 If a theme or plugin filters the title with a placeholder name, the new
 title tag uses that. With
 [https://themes.trac.wordpress.org/browser/twentytwentyone/1.3/inc
 /template-functions.php#L163 Twenty Twenty-One's post title filter], a
 post published without entering a title would have `Edit "Untitled"`
 because "Untitled" is the main heading of the front-end page then.

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


More information about the wp-trac mailing list