[wp-trac] [WordPress Trac] #44103: change the type attribute of #menu_order from 'text' to 'number'

WordPress Trac noreply at wordpress.org
Wed May 16 01:36:09 UTC 2018


#44103: change the type attribute of #menu_order from 'text' to 'number'
-----------------------------+-----------------------------
 Reporter:  tmatsuur         |      Owner:  (none)
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  General          |    Version:  4.9.5
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 Currently, when focus shifts to the input box of menu_order in the
 situation that the IME is turned on, an extra operation such as inputting
 a numerical value after turning off the IME is necessary.
 I would like to improve on this.

 Now:
 {{{
 <input name="menu_order" type="text" size="4" id="menu_order" value="<?php
 echo esc_attr( $post->menu_order ); ?>" />
 }}}

 Change:
 {{{
 <input name="menu_order" type="number" id="menu_order" value="<?php echo
 esc_attr( $post->menu_order ); ?>" />
 }}}

 Also, please add a style to specify the width.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44103>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list