{"id":8069375,"date":"2016-02-24T20:35:27","date_gmt":"2016-02-24T20:35:27","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/quick-advices\/"},"modified":"2016-09-03T04:41:35","modified_gmt":"2016-09-03T04:41:35","slug":"quick-advices","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/quick-advices\/","title":{"rendered":"Quick advices"},"content":{"rendered":"<p>you shouldn&#8217;t need sslverify =&gt; false:<\/p>\n<pre><code>$cwbadges = wp_remote_get(&#039;https:\/\/coderwall.com\/&#039;.$this-&gt;username.&#039;.json&#039;, array( &#039;sslverify&#039; =&gt; false));<\/code><\/pre>\n<p>You should also html escape the data coming from coderwall before using it in HTML:<\/p>\n<pre><code>foreach($cwbadges-&gt;badges as $badge){\n            $badges_string.=&#039;&lt;img class=&quot;cwbtip&quot; src=&quot;&#039;.$badge-&gt;badge.&#039;&quot;\n              alt=&quot;&#039;.$badge-&gt;name.&#039;&quot; title=&quot;&#039;.$badge-&gt;description.&#039;&quot; \/&gt;&#039;;\n          }\n          $badges_string.=&#039;&lt;\/div&gt;&#039;;<\/code><\/pre>\n<p>Also, you should apply some filtering on the username and endorsement before using them. Not a big deal, just good practices.<\/p>\n<p>Thanks for the awesome work anyway \ud83d\ude42<\/p>\n","protected":false},"template":"","class_list":["post-8069375","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8069375","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8069375\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8069375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}