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

WordPress Trac noreply at wordpress.org
Fri Jun 26 23:24:26 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):

 Replying to [comment:19 valendesigns]:
 > @westonruter The code above looks like it only works for the
 `page_on_front` option, the `page_for_posts` option needs to redirect to a
 different URL. I agree that it's a much simpler approach and worth looking
 into though. I'll ping you on Slack so we can discuss it.

 OK, take a look at [attachment:30677.4.diff]. It should update the preview
 URL as expected when changing the `show_on_front`, `page_for_posts`, and
 `page_on_front` settings.

 If the `show_on_front` or `page_on_front` settings get changed, it will
 update the previewed URL to the homepage if `show_on_front` is `page` and
 `page_on_front` is not `0`.

 And then if the `page_for_posts` gets changed, it will update the
 previewed URL to `wp.customize.settings.url.home + '?page_id=' + value`.

 Let me know if this does the trick for you.

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


More information about the wp-trac mailing list