[wp-trac] [WordPress Trac] #44875: register_post_type won't accept menu_position as float (as string) like other admin menu functions do
WordPress Trac
noreply at wordpress.org
Thu Sep 6 14:18:29 UTC 2018
#44875: register_post_type won't accept menu_position as float (as string) like
other admin menu functions do
------------------------------------+------------------------------
Reporter: stiofansisland | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses: administration
------------------------------------+------------------------------
Comment (by stiofansisland):
@earnjam add_menu_page() does accept decimals as a string "12.345" i have
been using it this way for years, i actually thought it was in the codex
as i remember reading about it years ago.
https://github.com/AyeCode/geodirectory/blob/0e5b9d066a3f4b3f034464a36a8856af4b967b80/includes/admin
/class-geodir-admin-menus.php#L48
Do you want me to recreate the patch from root?
Thanks,
Stiofan
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44875#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list