mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-26 08:55:13 +00:00
Customize: Fix reversal of nav menu item's type
and object
properties for
page stub added in customizer. Amends [38906]. See #38164. Fixes #40277. Merges [40380] to the 4.7 branch. Built from https://develop.svn.wordpress.org/branches/4.7@40383 git-svn-id: http://core.svn.wordpress.org/branches/4.7@40290 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c0f0a7739a
commit
0a91666a7e
@ -2267,9 +2267,9 @@
|
|||||||
availableItem = new api.Menus.AvailableItemModel( {
|
availableItem = new api.Menus.AvailableItemModel( {
|
||||||
'id': 'post-' + data.post_id, // Used for available menu item Backbone models.
|
'id': 'post-' + data.post_id, // Used for available menu item Backbone models.
|
||||||
'title': title,
|
'title': title,
|
||||||
'type': 'page',
|
'type': 'post_type',
|
||||||
'type_label': api.Menus.data.l10n.page_label,
|
'type_label': api.Menus.data.l10n.page_label,
|
||||||
'object': 'post_type',
|
'object': 'page',
|
||||||
'object_id': data.post_id,
|
'object_id': data.post_id,
|
||||||
'url': data.url
|
'url': data.url
|
||||||
} );
|
} );
|
||||||
|
2
wp-admin/js/customize-controls.min.js
vendored
2
wp-admin/js/customize-controls.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.7.4-alpha-40375';
|
$wp_version = '4.7.4-alpha-40383';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user