[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
Mon May 20 07:09:55 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 afercia):

 For some background: [44896] / #42390.

 In that ticket, the initial idea was to
 [https://core.trac.wordpress.org/ticket/42390#comment:3 use a native
 placeholder attribute]. Considering backwards compatibility and the
 presence of the `enter_title_here` filter, the final decision was:
 - Quick Press widget in the Dashboard: use visible `<label>` elements and
 a native `placeholder` attribute
 - Post title: keep the JavaScript "prompt text" thing and make the text
 behave like a placeholder: the text now disappears only when typing
 something, while previously disappeared on focus. Hence, the right-click
 problem.

 Definitely in favor of using a native `placeholder` attribute, if that's
 possible. The patch should ensure the `enter_title_here` filter still
 works.

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


More information about the wp-trac mailing list