We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9432966 commit 6c7d59bCopy full SHA for 6c7d59b
wp-rest-api-v2-menus.php
@@ -145,7 +145,7 @@ function wp_api_v2_menus_get_menu_items( $id ) {
145
// add slug to menu items
146
$slug = basename( get_permalink($item->object_id) );
147
$item->slug = $slug;
148
- if ($item->thumbnail_id) {
+ if (isset($item->thumbnail_id) && $item->thumbnail_id) {
149
$item->thumbnailSrc = wp_get_attachment_image_url($item->thumbnail_id, 'post-thumbnail');
150
}
151
} else if($item->type == 'taxonomy') {
0 commit comments