#57318 closed defect (bug) (fixed)
Coding Standards: Use strict comparison in wp-admin/includes/nav-menu.php
| Reported by: | jenilk | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.3 |
| Component: | Menus | Version: | |
| Severity: | normal | Keywords: | has-patch needs-test-info |
| Cc: | Focuses: | coding-standards |
Description
Coding Standards: Use strict comparison in wp-admin/includes/nav-menu.php
Attachments (1)
Change History (7)
#2
in reply to: ↑ 1
@
4 years ago
Replying to johnbillion:
Thanks for the patch @jenilk! Are all of these variables guaranteed to be of the same type? For example data coming in via
$_POSTmay be a string, etc.
@johnbillion - I made changes to the 4 places, and out of them, there are 2 places where the data is coming as $_POST for comparison. We can not be guaranteed of it will be of the same type(FYI we don't have declared variable with datatype specification).
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Thanks for the patch @jenilk! Are all of these variables guaranteed to be of the same type? For example data coming in via
$_POSTmay be a string, etc.