[wp-trac] [WordPress Trac] #47318: Fix the placeholder for the post title field on the classic Edit Post screen

WordPress Trac noreply at wordpress.org
Thu May 23 03:50:28 UTC 2019


#47318: Fix the placeholder for the post title field on the classic Edit Post
screen
-------------------------------------------------+-------------------------
 Reporter:  azaozz                               |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  5.3
Component:  Administration                       |     Version:
 Severity:  minor                                |  Resolution:
 Keywords:  good-first-bug has-patch needs-      |     Focuses:
  testing                                        |  accessibility
-------------------------------------------------+-------------------------

Comment (by azaozz):

 Looking at https://core.trac.wordpress.org/ticket/42390#comment:10 and the
 following two comments: unless I'm missing something thinking that on the
 Edit Post screen we can:
 - Use `$title_placeholder` (after the filter) as a "real" placeholder on
 the text input field (needs `esc_attr()`), and as text for the `<label>`.
 That is pretty much how it works now.
 - Leave the `<label>` permanently hidden with `screen-reader-text`. I.e.
 remove the js that adds and removes the class.

 Alternatively we can change the text of the label to "Title", however
 seems that may not fit for some CPTs.

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


More information about the wp-trac mailing list