Pascal Birchler aac1185ea9 Menus: Support nested array variables in POST data when saving menus.
[36510] allowed larger menus to be created in the Edit Menu screen by JSON-encoding the entire form into a single input field. However, it did not correctly handle nested arrays.

This introduces a new `_wp_expand_nav_menu_post_data()` helper function to handle this POST data which uses `array_replace_recursive()` internally. Since the latter is only available on PHP 5.3+, we add a compatibility function to ensure PHP 5.2 support.

Merge of [37748] and [37750] to the 4.5 branch.

Props ericlewis, neverything, swissspidy.
Fixes #36590. See #14134.

git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37754 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-20 19:49:49 +00:00
Description
No description provided
244 MiB
Languages
PHP 81.4%
CSS 8.9%
JavaScript 8.1%
SCSS 0.9%
HTML 0.7%