diff --git a/CHANGELOG.md b/CHANGELOG.md index d281b2c..1366cb1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## 0.93.1 + +* Fixes a bug with `post_status` introduced in `sanitize_status`. Thanks Galen Charlton (@gmcharlt) for the catch and fix! + ## 0.93.0 * Don't skip password protected filter when showing content. diff --git a/include/lcp-catlist.php b/include/lcp-catlist.php index cc8293c..043421b 100644 --- a/include/lcp-catlist.php +++ b/include/lcp-catlist.php @@ -620,9 +620,8 @@ private function sanitize_status($statuses){ if (in_array('private', $statuses) || in_array('draft', $statuses)) { if ( !( current_user_can('editor') || current_user_can('administrator')) ) { return implode(',', array_diff($statuses, array('private', 'draft'))); - } else { - return $statuses; } } + return $statuses; } } diff --git a/list-category-posts.php b/list-category-posts.php index 9c81d0a..15fd6b1 100644 --- a/list-category-posts.php +++ b/list-category-posts.php @@ -3,7 +3,7 @@ Plugin Name: List category posts Plugin URI: https://github.com/picandocodigo/List-Category-Posts Description: List Category Posts allows you to list posts by category in a post/page using the [catlist] shortcode. This shortcode accepts a category name or id, the order in which you want the posts to display, the number of posts to display and many more parameters. You can use [catlist] as many times as needed with different arguments. Usage: [catlist argument1=value1 argument2=value2]. - Version: 0.93.0 + Version: 0.93.1 Author: Fernando Briano Author URI: http://fernandobriano.com diff --git a/readme.txt b/readme.txt index 2b37198..444150e 100644 --- a/readme.txt +++ b/readme.txt @@ -243,6 +243,10 @@ Template system has changed. Custom templates should be stored in WordPress them See [CHANGELOG.md](https://github.com/picandocodigo/List-Category-Posts/blob/master/CHANGELOG.md) for full Changelog. += 0.93.1 = + +* Fixes a bug with `post_status` introduced in `sanitize_status`. Thanks Galen Charlton (@gmcharlt) for the catch and fix! + = 0.93.0 = * Don't skip password protected filter when showing content.