Changes between Initial Version and Version 1 of Ticket #14134, comment 208
- Timestamp:
- 03/04/2016 06:57:11 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #14134, comment 208
initial v1 1 1 @ericlewis 2 2 3 I think I have found my problem and sol lution as stated in the comment before.3 I think I have found my problem and solution. 4 4 5 Changed code: starting from '''line 61''' in ''' nav-menus.php'''5 Changed code: starting from '''line 61''' in '''wp-admin/nav-menus.php''' 6 6 {{{#!php 7 7 <?php … … 19 19 }}} 20 20 21 The menu locations are associative arrays and the preg_match you've made ( '#(.*)(?:\[(\d+)\])#') targeted only digits. Changed "d+" to "w+" to solve this.22 After that, if $matched[2] is a numeric I've still made it an integer .21 The menu locations are associative arrays and the preg_match you've made ( '#(.*)(?:\[(\d+)\])#' ) targeted only digits. Changed "d+" to "w+" to solve this. 22 After that, if $matched[2] is a numeric I've still made it an integer like before with (int). 23 23 24 With th is changes both integers and strings can be used inarray keys.24 With these changes both integers and strings can be used as array keys. 25 25 26 26 Can you please review this code? I really like to see this working 100% in the 4.5 release.