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

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

Built from https://develop.svn.wordpress.org/trunk@40380


git-svn-id: http://core.svn.wordpress.org/trunk@40287 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Weston Ruter 2017-04-05 23:29:42 +00:00
parent 5f771393a3
commit 162785c65f
3 changed files with 4 additions and 4 deletions

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
} );

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.8-alpha-40379';
$wp_version = '4.8-alpha-40380';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.