[wp-trac] [WordPress Trac] #31749: submit_button() should not output empty name attribute

WordPress Trac noreply at wordpress.org
Tue Mar 24 18:30:19 UTC 2015


#31749: submit_button() should not output empty name attribute
----------------------------+--------------------------------
 Reporter:  afercia         |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  4.2
Component:  Administration  |     Version:  4.1
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  ui, accessibility
----------------------------+--------------------------------

Comment (by azaozz):

 Replying to [comment:3 SergeyBiryukov]:

 Sure, there is no point in having empty ID attributes. This function seems
 somewhat redundant, and at 42 lines of code it is more constraining than
 useful... Seems it just complicates something as simple as adding one HTML
 tag.

 No wonder it is not used most of the time. As far as I see it is used only
 at 5 places in wp-admin, and there are about 40 "standard" submit buttons
 :) Perhaps we should look into deprecating it.

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


More information about the wp-trac mailing list