Make WordPress Core

Changes between Initial Version and Version 4 of Ticket #54798


Ignore:
Timestamp:
01/12/2022 07:00:56 PM (5 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #54798

    • Property Summary Check for int in menu priority implementation → Check for int in menu priority
    • Property Keywords has-patch has-unit-tests added
    • Property Milestone Awaiting Review → 6.0
    • Property Owner set to audrasjb
    • Property Status assigned → reviewing
    • Property Version trunk
  • Ticket #54798 – Description

    initial v4  
    1 Similar to [https://core.trac.wordpress.org/ticket/48249], this ticket focuses on ensuring that devs don't accidentally pass non-integer values in the position argument.
     1Similar to #48249, this ticket focuses on ensuring that devs don't accidentally pass non-integer values in the position argument.
    22
    3 A similar issue was also reported in [https://core.trac.wordpress.org/ticket/40927], where passing a float argument in `add_menu_page` causes to override menu item.
     3A similar issue was also reported in #40927, where passing a float argument in `add_menu_page` causes to override menu item.
    44
    55For backward compatibility, I'd like to suggest informing users with `_doing_it_wrong` if a non-integer value is passed.