Wp-calypso: Pages: front page setting `page` works, setting `blog posts` doesn't work

Created on 14 Apr 2017  路  2Comments  路  Source: Automattic/wp-calypso

Regarding the homepage settings:

  • If the site has "Blog Posts" active as front page, setting any page as front page works
  • If the site has any page active as front page, activating "Blog Posts" doesn't work

To reproduce:

  1. Open Pages
  2. Switch the homepage to any page
  3. Try switching back to Blog Posts

cap-

Pages [Type] Bug

Most helpful comment

When trying to switch the homepage to "Blog Posts", this XHR is issued:

POST https://public-api.wordpress.com/rest/v1.1/sites/:site_id/homepage

request:
{ is_page_on_front: true, page_on_front_id: 0 }

response:
{ is_page_on_front: true, page_on_front_id: "0", page_for_posts_id: 0 }

My shallow understanding is that the request should contain "is_page_on_front: false" instead so the homepage will use the blog post list instead of a page.

All 2 comments

When trying to switch the homepage to "Blog Posts", this XHR is issued:

POST https://public-api.wordpress.com/rest/v1.1/sites/:site_id/homepage

request:
{ is_page_on_front: true, page_on_front_id: 0 }

response:
{ is_page_on_front: true, page_on_front_id: "0", page_for_posts_id: 0 }

My shallow understanding is that the request should contain "is_page_on_front: false" instead so the homepage will use the blog post list instead of a page.

Just confirmed that correct API call should be the one with is_page_on_front: false to set the homepage back to "Blog Posts".

screen shot 2017-04-14 at 14 51 06
screen shot 2017-04-14 at 14 52 22

Was this page helpful?
0 / 5 - 0 ratings