[wp-trac] [WordPress Trac] #27666: Set/Get the current URL in the Theme Customizer

WordPress Trac noreply at wordpress.org
Fri Apr 4 09:05:13 UTC 2014


#27666: Set/Get the current URL in the Theme Customizer
----------------------------------------+-----------------------------
 Reporter:  TJNowell                    |      Owner:
     Type:  enhancement                 |     Status:  new
 Priority:  normal                      |  Milestone:  Awaiting Review
Component:  Administration              |    Version:
 Severity:  normal                      |   Keywords:
  Focuses:  javascript, administration  |
----------------------------------------+-----------------------------
 When opening the theme customiser, the URL GET parameter sets the page
 shown in the preview pane, however a user can navigate away by clicking
 links in the preview pane.

 This is fine for global background colours, but becomes a problem if you
 try to do anything contextual with the customiser controls.

 It would be useful to also set this URL. For example, if I have a control
 that configures the layout of the category archive, it would make sense to
 provide a means to navigate to a category archive automatically.

 I would suggest this be done using `PostMessage`, and be implemented in
 the preview, so that calls like this:

     api.instance('my_control').previewer.refresh();

 could be used like this:

     api.instance('my_theme_options[footer_image]').previewer.getURL();

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27666>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list