Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
spacedmonkey committed Jan 26, 2020
1 parent 2916cdc commit cd7d5b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/class-wp-rest-menus-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function prepare_item_for_database( $request ) {
$prepared_term = (array) $prepared_term;
$schema = $this->get_item_schema();
if ( isset( $request['name'] ) && ! empty( $schema['properties']['name'] ) ) {
$response['menu-name'] = $request['name'];
$prepared_term['menu-name'] = $request['name'];
}

return $prepared_term;
Expand Down

0 comments on commit cd7d5b3

Please sign in to comment.