Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#38122 closed defect (bug) (fixed)

Ensure page/post stubs are available in available nav menu item searches

Reported by: westonruter's profile westonruter Owned by: westonruter's profile westonruter
Milestone: 4.7 Priority: normal
Severity: normal Version:
Component: Customize Keywords: has-patch
Focuses: Cc:


The ability to create new post/page stubs was added in #34923. However, these posts/pages do not appear when doing a search. Similarly, if new posts/pages are created during a customizer session (such as via the Customize Posts plugin) then similarly these posts will not appear. The reason stems from the fact that the customized state is not being included in the admin-ajax requests and the settings are not previewed. Something similar was done for update-widget requests in [33488] for #32814.

The required code can be seen in Customize Posts, which has a polyfill:

Attachments (1)

38122.0.diff (8.1 KB) - added by westonruter 7 years ago.

Download all attachments as: .zip

Change History (7)

#1 @westonruter
7 years ago

  • Owner set to westonruter
  • Status changed from new to accepted

This ticket was mentioned in Slack in #core by jeffpaul. View the logs.

7 years ago

This ticket was mentioned in Slack in #core by jeffpaul. View the logs.

7 years ago

#4 @westonruter
7 years ago

Also need to make sure that the nav menu items created from starter content appear among the available nav menu items. This is closely related to code touched by #36697. The Ajax request to load items needs to include the customized state.

7 years ago

#5 @westonruter
7 years ago

  • Keywords has-patch added; needs-patch removed

#6 @westonruter
7 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 39138:

Customize: Ensure page/post stubs are included in listings and searches for available nav menu items.

Include the customized state in the Ajax requests to load items and search items.

See #38573.
Fixes #38122.

Note: See TracTickets for help on using tickets.