Make WordPress Core

Changeset 40383


Ignore:
Timestamp:
04/06/2017 05:17:19 PM (8 years ago)
Author:
swissspidy
Message:

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.

Location:
branches/4.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.7

  • branches/4.7/src/wp-admin/js/customize-controls.js

    r40375 r40383  
    22682268                    'id': 'post-' + data.post_id, // Used for available menu item Backbone models.
    22692269                    'title': title,
    2270                     'type': 'page',
     2270                    'type': 'post_type',
    22712271                    'type_label': api.Menus.data.l10n.page_label,
    2272                     'object': 'post_type',
     2272                    'object': 'page',
    22732273                    'object_id': data.post_id,
    22742274                    'url': data.url
Note: See TracChangeset for help on using the changeset viewer.