diff --git src/wp-includes/customize/class-wp-customize-nav-menu-section.php src/wp-includes/customize/class-wp-customize-nav-menu-section.php
index fb5eb76..5518b34 100644
|
|
class WP_Customize_Nav_Menu_Section extends WP_Customize_Section { |
36 | 36 | */ |
37 | 37 | public function json() { |
38 | 38 | $exported = parent::json(); |
39 | | $exported['menu_id'] = intval( preg_replace( '/^nav_menu\[(\d+)\]/', '$1', $this->id ) ); |
| 39 | $exported['menu_id'] = intval( preg_replace( '/^nav_menu\[(-?\d+)\]/', '$1', $this->id ) ); |
40 | 40 | |
41 | 41 | return $exported; |
42 | 42 | } |