[wp-trac] [WordPress Trac] #20714: Theme customizer: Impossible to preview a search results page
WordPress Trac
noreply at wordpress.org
Wed Aug 10 04:45:21 UTC 2016
#20714: Theme customizer: Impossible to preview a search results page
-------------------------+--------------------------
Reporter: johnbillion | Owner: westonruter
Type: enhancement | Status: accepted
Priority: normal | Milestone: 4.7
Component: Customize | Version: 3.4
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: javascript
-------------------------+--------------------------
Changes (by westonruter):
* owner: => westonruter
* status: new => accepted
* milestone: Future Release => 4.7
Comment:
I just realized a very simple fix for this, and it's not dependent on
transactions at all. All we have to do is listen for form `submit` events
and if the form has a `GET` request method and if the `action` points to a
URL for the current WP instance, then we can just `serialize` the form's
data and amend it to the `action` URL and send this new URL in the `url`
message to the Customizer pane, just as happens when clicking a regular
link. See https://github.com/xwp/wp-customize-snapshots/pull/72/files
#diff-56102a3fdc293b051600c9ab9fedc164R145
--
Ticket URL: <https://core.trac.wordpress.org/ticket/20714#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list