Make WordPress Core

Opened 7 years ago

Last modified 5 years ago

#42272 new enhancement

Customize: Use client-side templates for rendering base controls

Reported by: westonruter's profile westonruter Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 4.9
Component: Customize Keywords: needs-patch
Focuses: Cc:

Description (last modified by westonruter)

This is a follow-up on #30738. See patches on that ticket. Eliminating server-side rendering of the control content for server-side registered controls was not included as part of 4.9 due to it being a big change and it got too late in the release.

This will necessarily need to include support for dropdown-pages which we didn't implement in #30738, since we ran out of time and wanted to rely on REST API for fetching the pages.

Change History (6)

#1 @westonruter
7 years ago

  • Type changed from defect (bug) to enhancement

#2 @westonruter
7 years ago

  • Description modified (diff)
  • Version set to 4.9

#3 @westonruter
7 years ago

See implementation of dropdown-pages control template here:

#4 @westonruter
7 years ago

We should go ahead and implement the dropdown-pages control using the approach in that gist and not wait for REST API integration because the approach using wp_dropdown_pages() will be better for back-compat. And at the very least, by using this template we'll cut down on at least half of the wp_dropdown_pages() calls for a given page load, because the template will then be re-used for both the controls for the homepage and posts page.

#5 @johnbillion
6 years ago

  • Milestone changed from 5.0 to 5.1

#6 @pento
5 years ago

  • Keywords needs-patch added
  • Milestone changed from 5.1 to Future Release
Note: See TracTickets for help on using tickets.