Skip to content

Commit

Permalink
Fixes bug where lists were being emptied on page load with the cache …
Browse files Browse the repository at this point in the history
…option enabled.
  • Loading branch information
Kyle Phillips committed Jun 21, 2017
1 parent 838a2fd commit 6f52765
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/Entities/FavoriteList/FavoriteListTypeBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ protected function setNoFavoritesText()
*/
protected function setPostTypes()
{
$this->list_options->post_types = $this->post_type_repo->getAllPostTypes('names', true);
$this->list_options->post_types = implode(',', $this->post_type_repo->getAllPostTypes('names', true));
if ( isset($this->list_options->filters['post_type']) )
$this->list_options->post_types = implode(',', $this->list_options->filters['post_type']);
}
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ As of version 1.1.0, Favorites is compatible with multisite installations. By de

= 2.1.3 =
* Bug fix where authentication gate modal was not appearing correctly due to a Javascript error on sites with the cache option disabled.
* Bug fix where lists were being emptied on page load with the cache option enabled.

= 2.1.2 =
* Added additional filters for the listing wrapper CSS classes and the listing element CSS classes. See the plugin website for details.
Expand Down

0 comments on commit 6f52765

Please sign in to comment.