Skip to content

Commit

Permalink
Merge pull request #16 from outlandishideas/allow-private-previews
Browse files Browse the repository at this point in the history
Allow previews of 'private' status posts too
  • Loading branch information
rasmuswinter authored May 20, 2021
2 parents 9ce0042 + e2416a1 commit 7992811
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Oowp/OowpRouterHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,13 @@ public function querySingle($args, $redirectCanonical = false) {

//for unpublished posts and posts returned to draft, allow draft status
//for being able to preview edits of existing pages, allow inherit
$args['post_status'] = array('draft', 'publish', 'auto-draft', 'inherit');
$args['post_status'] = array(
'auto-draft',
'draft',
'inherit',
'private',
'publish',
);

$redirectCanonical = false;
}
Expand Down

0 comments on commit 7992811

Please sign in to comment.