Make WordPress Core

Changeset 40380


Ignore:
Timestamp:
04/05/2017 11:28:13 PM (8 years ago)
Author:
westonruter
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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/customize-controls.js

    r40319 r40380  
    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.