Customize: Fix reversal of nav menu item's type and object properties for page stub added in customizer.

Amends [38906].
See #38164.
Fixes #40277.


git-svn-id: https://develop.svn.wordpress.org/trunk@40380 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Weston Ruter 2017-04-05 23:28:13 +00:00
parent 4c72c19f0e
commit e5508461da

View File

@ -2267,9 +2267,9 @@
availableItem = new api.Menus.AvailableItemModel( {
'id': 'post-' + data.post_id, // Used for available menu item Backbone models.
'title': title,
'type': 'page',
'type': 'post_type',
'type_label': api.Menus.data.l10n.page_label,
'object': 'post_type',
'object': 'page',
'object_id': data.post_id,
'url': data.url
} );