Subway is a plugin for WordPress that allows you to hide the content of your website to non-logged in visitors and only displays them to logged in users.
and $post_id is not in $public_posts, it will remove the first element in the list, - which means that when changing a private post, that was not public, it will remove another public post from the list of public posts.
This bugfix makes sure that $post_id is in the list of public posts, before trying to remove it, thus fixing #54
When you
and
$post_id
is not in$public_posts
, it will remove the first element in the list, - which means that when changing a private post, that was not public, it will remove another public post from the list of public posts.This bugfix makes sure that
$post_id
is in the list of public posts, before trying to remove it, thus fixing #54Please include this in a release soon :)