Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #42918, comment 10


Ignore:
Timestamp:
10/09/2020 05:29:25 AM (4 years ago)
Author:
johnjamesjacoby
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #42918, comment 10

    v1 v2  
    2626$menu[ "$position" ] = $new_menu;
    2727}}}
    28 ...was changed to...
     28...was changed to use...
    2929{{{
    3030$menu[ $position ] = $new_menu;
     
    3333PHP 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.
    3434
    35 I'd recommend reverting that line, perhaps to this to be even more clear that this is intentional:
     35I'd recommend reverting those lines, perhaps to this to be even more clear that this is intentional:
    3636
    3737{{{