Changes between Version 1 and Version 2 of Ticket #42918, comment 10
- Timestamp:
- 10/09/2020 05:29:25 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #42918, comment 10
v1 v2 26 26 $menu[ "$position" ] = $new_menu; 27 27 }}} 28 ...was changed to ...28 ...was changed to use... 29 29 {{{ 30 30 $menu[ $position ] = $new_menu; … … 33 33 PHP doesn't allow floats to be array keys, but it will allow strings to be, and WordPress is (perhaps unintentionally) smart enough to continue to order ints and strings-with-float-contents in the correct numerical sequence. 34 34 35 I'd recommend reverting th at line, perhaps to this to be even more clear that this is intentional:35 I'd recommend reverting those lines, perhaps to this to be even more clear that this is intentional: 36 36 37 37 {{{