Skip to content

Commit cc526b6

Browse files
committed
clear tag requirements
1 parent cfa65eb commit cc526b6

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

display-medium-posts.php

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -82,24 +82,18 @@ function posts_display($atts){
8282
if(strcmp($a['handle'], '-1') == 0){
8383
return "";
8484
}
85-
$handle=$a['handle'];
86-
$default_image = $a['default_image'];
87-
$display = $a['display'];
88-
$offset = $a['offset'];
89-
$total = $a['total'];
90-
$list = $a['list'] =='false' ? false: $a['list'];
91-
$publication = $a['publication'] =='false' ? false: $a['publication'];
85+
$handle = $a['handle'];
86+
$default_image = $a['default_image'];
87+
$display = $a['display'];
88+
$offset = $a['offset'];
89+
$total = $a['total'];
90+
$list = $a['list'] == 'false' ? false : $a['list'];
9291
$title_tag = $a['title_tag'];
93-
$tag = $a['tag'];
9492
$date_format = $a['date_format'];
9593

9694
$content = null;
9795

98-
if($tag)
99-
{
100-
$medium_url = "https://medium.com/tag/" . $tag . "?format=json";
101-
}
102-
else $medium_url = "https://medium.com/" . $handle . "/latest?format=json";
96+
$medium_url = "https://medium.com/" . $handle . "/latest?format=json";
10397

10498
try {
10599
$ch = curl_init();

0 commit comments

Comments
 (0)