File tree Expand file tree Collapse file tree 1 file changed +7
-13
lines changed
Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments