Making WordPress.org

Opened 6 years ago

Closed 6 years ago

#3783 closed enhancement (invalid)

register_post_type won't accept menu_position as float (as string) like other admin menu functions do

Reported by: stiofansisland's profile stiofansisland Owned by:
Milestone: Priority: normal
Component: General Keywords: has-patch dev-feedback
Cc:

Description

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...

Attachments (1)

menu.diff (681 bytes) - added by stiofansisland 6 years ago.

Download all attachments as: .zip

Change History (2)

@stiofansisland
6 years ago

#1 @netweb
6 years ago

  • Resolution set to invalid
  • Status changed from new to closed

Closing, wrong Trac, see #WP44875

Note: See TracTickets for help on using tickets.