WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #28568, comment 6


Ignore:
Timestamp:
05/28/2018 07:58:51 AM (3 years ago)
Author:
marco.marsala
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28568, comment 6

    initial v1  
    1 I noticed that you can't get a private post by id if not logged, but it works if you remove 'page_id' argument; specifying only 'post_status' = 'private' without 'page_id', you'll get all posts including private ones. Feature or (security) bug?
     1I came across this thread because I had the same issue.
     2
     3I noticed that you can't get a private post by id if not logged, but it works if you remove 'page_id' argument; specifying only 'post_status' = 'private' without 'page_id', you'll get all posts including private ones.
     4
     5Feature or (security) bug?