{"id":4657696,"date":"2014-02-27T22:43:00","date_gmt":"2014-02-27T22:43:00","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/code-suggestions\/"},"modified":"2016-08-21T16:46:53","modified_gmt":"2016-08-21T16:46:53","slug":"code-suggestions","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/code-suggestions\/","title":{"rendered":"Code Suggestions"},"content":{"rendered":"<p>This looks like a really promising tool! Very excited to use it more.<\/p>\n<p>One thing I noticed: on line 698 where you drop in the URL for the link, I added a check for a flickr link so that site links open in a new window.<\/p>\n<pre><code>if ( ! empty( $url ) &amp;&amp; $link == &#039;flickr&#039; ) {\n\techo &#039;&lt;a href=&quot;&#039;. $url .&#039;&quot; target=&quot;_blank&quot;&gt;&#039;;\n} elseif ( ! empty( $url ) ) {\n\techo &#039;&lt;a href=&quot;&#039;. $url .&#039;&quot; &gt;&#039;;\n}<\/code><\/pre>\n<p>Seems like a better user experience on the front end.<\/p>\n<p>https:\/\/wordpress.org\/plugins\/flickr-api\/<\/p>\n","protected":false},"template":"","class_list":["post-4657696","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4657696","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\/4657696\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4657696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}