[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
Fri Aug 31 10:53:47 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:  trunk
 Severity:  normal          |   Keywords:  has-patch dev-feedback
  Focuses:  administration  |
----------------------------+------------------------------------
 The register_post_type function does not accept float values so its
 impossible to exactly position your CPTs next to each other if you have
 more than 5.

 Most other functions to add admin menu items accept float values as a
 string like "55.1" but this is not the case with register_post_type due to
 a is_int check.

 I will attach a diff file for the smallest change ever...

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


More information about the wp-trac mailing list