mirror of
https://github.com/Automattic/wordpress-activitypub
synced 2024-10-18 12:23:32 +00:00
Ensure that sticky_posts is an array (#935)
This commit is contained in:
parent
d532f8be06
commit
460174c9a7
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ class Collection {
|
|||
|
||||
if ( ! is_single_user() && User_Collection::BLOG_USER_ID === $user->get__id() ) {
|
||||
$posts = array();
|
||||
} elseif ( $sticky_posts ) {
|
||||
} elseif ( is_array( $sticky_posts ) ) {
|
||||
$args = array(
|
||||
'post__in' => $sticky_posts,
|
||||
'ignore_sticky_posts' => 1,
|
||||
|
|
Loading…
Reference in a new issue