mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-09-25 18:30:26 +00:00
This change adds a verification of the `$position` parameter in `add_menu_page()` to ensure an integer is used. If not, the function informs developers of the wrong parameter type via a `_doing_it_wrong` message. This brings consistency with a similar check used in `add_submenu_page()`. This change also typecasts any floating number to string to ensure that in case a float value was passed, at least it doesn't override existing menus. Follow-up to [46570]. Props kirtan95. Fixes #54798. See #48249. git-svn-id: https://develop.svn.wordpress.org/trunk@52569 602fd350-edb4-49c9-b593-d223f7449a82