{"id":300,"date":"2005-08-14T13:11:41","date_gmt":"2005-08-14T18:11:41","guid":{"rendered":"http:\/\/ywwg.com\/wordpress\/?p=300"},"modified":"2005-08-14T14:06:14","modified_gmt":"2005-08-14T19:06:14","slug":"getting-wordpress-to-see-torrents","status":"publish","type":"post","link":"https:\/\/ywwg.com\/wordpress\/archives\/300","title":{"rendered":"getting wordpress to see torrents"},"content":{"rendered":"<p>By default wordpress only includes audio and video mimetypes when it reads your post to decide if there are any urls it should enclose.  This means that if you want to enclose bittorrent in wordpress, it won&#8217;t do it without a little hacking.<\/p>\n<p>edit wp-includes\/functions.php<br \/>\nin do_enclose, around line 775, there&#8217;s the line:<br \/>\n$allowed_types = array( &#8216;video&#8217;, &#8216;audio&#8217;  );<br \/>\nchange to:<br \/>\n$allowed_types = array( &#8216;video&#8217;, &#8216;audio&#8217; , &#8216;application&#8217; );<\/p>\n<p>Note that any link to some application\/* will become enclosed, so this is an awful, awful hack.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default wordpress only includes audio and video mimetypes when it reads your post to decide if there are any urls it should enclose. This means that if you want to enclose bittorrent in wordpress, it won&#8217;t do it without a little hacking. edit wp-includes\/functions.php in do_enclose, around line 775, there&#8217;s the line: $allowed_types = &hellip; <a href=\"https:\/\/ywwg.com\/wordpress\/archives\/300\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;getting wordpress to see torrents&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/posts\/300"}],"collection":[{"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/comments?post=300"}],"version-history":[{"count":0,"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/posts\/300\/revisions"}],"wp:attachment":[{"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/media?parent=300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/categories?post=300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/tags?post=300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}