[wp-meta] [Making WordPress.org] #3783: register_post_type won't accept menu_position as float (as string) like other admin menu functions do

Making WordPress.org noreply at wordpress.org
Fri Aug 31 10:41:17 UTC 2018


#3783: 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:
Component:  General         |   Keywords:  has-patch dev-feedback
----------------------------+------------------------------------
 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://meta.trac.wordpress.org/ticket/3783>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list