Opened 13 months ago

Closed 12 months ago

Last modified 12 months ago

#1023 closed defect (fixed)

( Post | Page ) preview doesn't work on private blog

Reported by: daniloercoli Owned by:
Priority: minor Milestone:
Component: Preview Mode Version:
Keywords: Cc:

Description

I think we should use the login form and the "redirect-to" parameter...

Attachments (1)

1023-v1.diff (1.8 KB) - added by daniloercoli 13 months ago.

Download all attachments as: .zip

Change History (10)

comment:1 Changed 13 months ago by daniloercoli

Unfortunately the private status of a blog is not exposed in the options. The only way to previewing private blogs is to use the login form, but in that case every preview request will authenticate the user and redirect it to the post.
Not sure if we want implement this.

Unfortunately WordPress? responds with the '200' HTTP code status, even if the blog is marked as private, so a simple HEAD call doesn't help us.

comment:2 Changed 13 months ago by koke

I believe private blogs on wp.com are done via plugin, so maybe we should expose a new method or change the result of wp.getUsersBlogs

comment:3 Changed 13 months ago by koke

  • Milestone changed from 3.0 to 3.1

Changed 13 months ago by daniloercoli

comment:4 Changed 13 months ago by daniloercoli

The 'Private blog' option is now exposed on the XML-RPC Endpoint. I've attached a patch that fixes this issue.

Last edited 12 months ago by daniloercoli (previous) (diff)

comment:5 Changed 12 months ago by isaackeyet

Will this work for .org blogs? If not, can we add a patch to core?

comment:6 Changed 12 months ago by daniloercoli

'Private blogs' is a WPCOM feature only.

comment:7 Changed 12 months ago by daniloercoli

  • Milestone changed from 3.1 to 3.0.1

comment:8 Changed 12 months ago by daniloercoli

  • Resolution set to fixed
  • Status changed from new to closed

(In [2636]) Fixed #1023 by checking the blog 'privacy' status

comment:9 Changed 12 months ago by daniloercoli

  • Milestone 3.0.1 deleted

Milestone 3.0.1 deleted

Note: See TracTickets for help on using tickets.