WordPress.org

Make WordPress Core

Opened 17 months ago

Last modified 15 months ago

#44103 new feature request

change the type attribute of #menu_order from 'text' to 'number'

Reported by: tmatsuur Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.9.5
Component: General Keywords: has-patch ux-feedback
Focuses: Cc:
PR Number:

Description

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.

Attachments (1)

44103.diff (1.5 KB) - added by soulseekah 15 months ago.
type="text" to type="number" on menu_order inputs

Download all attachments as: .zip

Change History (3)

@soulseekah
15 months ago

type="text" to type="number" on menu_order inputs

#1 follow-up: @soulseekah
15 months ago

  • Keywords has-patch ux-feedback added

Thank you for bring this to our attention. Patch attached.

#2 in reply to: ↑ 1 @tmatsuur
15 months ago

Replying to soulseekah:

Thank you for bring this to our attention. Patch attached.

Thank you for attached the patch.

Note: See TracTickets for help on using tickets.