Skip to content

Commit fa79a0f

Browse files
committed
fix issue with lists displaying when set in shortcode as false
1 parent 39bcfcc commit fa79a0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

display-medium-posts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function posts_display($atts){
8686
$display = $a['display'];
8787
$offset = $a['offset'];
8888
$total = $a['total'];
89-
$list = $a['list'];
89+
$list = $a['list'] =='false' ? false: $a['list'];
9090

9191
$data = file_get_contents("https://medium.com/".$handle."/latest?format=json");
9292
$data = str_replace("])}while(1);</x>", "", $data);

0 commit comments

Comments
 (0)