Fix query single post in event blocks

This commit is contained in:
Brian Miyaji
2019-04-11 00:10:01 +09:00
committed by GitHub
parent 7022d6bbd0
commit 38acce0dd7

View File

@@ -399,6 +399,7 @@ class SP_Calendar extends SP_Secondary_Post {
if ( $this->event) { if ( $this->event) {
$args['p'] = $this->event; $args['p'] = $this->event;
$args['post_status'] = 'any';
} }
if ( 'auto' === $this->date && 'any' === $this->status ) { if ( 'auto' === $this->date && 'any' === $this->status ) {