Changeset 37981
- Timestamp:
- 07/06/2016 05:32:49 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/customize/class-wp-customize-nav-menu-section.php
r35385 r37981 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;
Note: See TracChangeset
for help on using the changeset viewer.