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:
parent
4c72c19f0e
commit
e5508461da
@ -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
|
||||
} );
|
||||
|
Loading…
Reference in New Issue
Block a user