[wp-trac] [WordPress Trac] #30677: Customizer: Setting Front page does not work

WordPress Trac noreply at wordpress.org
Fri Jun 26 19:36:38 UTC 2015


#30677: Customizer: Setting Front page does not work
-------------------------------------+---------------------------
 Reporter:  pavelevap                |       Owner:  valendesigns
     Type:  enhancement              |      Status:  assigned
 Priority:  normal                   |   Milestone:  4.3
Component:  Customize                |     Version:  3.4
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  javascript
-------------------------------------+---------------------------

Comment (by westonruter):

 @valendesigns I took a look at the patch. Maybe I don't understand all
 that is desired here, but to me it seems like too much is going on?

 If the the need is to just change the preview to show the homepage when
 the `page_on_front` or `page_for_posts` settings are changed, then
 wouldn't it suffice to just do:

 {{{#!js
 api( 'page_on_front', 'page_for_posts', function( setting ) {
         // Change the previewed URL to the homepage when changing the Page
 on Front.
         setting.bind(function() {
                 api.previewer.previewUrl.set( api.settings.url.home );
         });
 });
 }}}

 Is there more to it that I'm not accounting for?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30677#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list