{"id":728,"date":"2009-11-06T14:37:55","date_gmt":"2009-11-06T19:37:55","guid":{"rendered":"https:\/\/surfrock66.com\/?p=728"},"modified":"2010-01-14T14:22:26","modified_gmt":"2010-01-14T19:22:26","slug":"making-the-sociable-plugin-w3c-compliant","status":"publish","type":"post","link":"https:\/\/surfrock66.com\/?p=728","title":{"rendered":"Making the Sociable Plugin W3C Compliant"},"content":{"rendered":"<p><p>I noticed my website was not W3C compliant, and in fact it had something like 200 errors.  All of them were due to the <a href=\"http:\/\/wordpress.org\/extend\/plugins\/sociable\/\">Sociable<\/a> plugin declaring each of the links as an \"id.\"  An \"id\" can only be declared once in a document, whereas a \"class\" can have multiple instances on the page.  To fix this, open the file \/wp-content\/plugins\/sociable\/sociable.php and change line 839 from this:<\/p><code>\/\/$link .= ' id=\"'.esc_attr(strtolower(str_replace(\" \", \"\", $sitename))).'\" ';<\/code><p>to this:<\/p><code>\/\/$link .= ' class=\"'.esc_attr(strtolower(str_replace(\" \", \"\", $sitename))).'\" ';<\/code><p>Should fix you right up.<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/\/$link .= &#8216; id=&#8221;&#8216;.esc_attr(strtolower(str_replace(&#8221; &#8220;, &#8220;&#8221;, $sitename))).'&#8221; &#8216;;\/\/$link .= &#8216; class=&#8221;&#8216;.esc_attr(strtolower(str_replace(&#8221; &#8220;, &#8220;&#8221;, $sitename))).'&#8221; &#8216;;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[74,22,72,73,20],"class_list":["post-728","post","type-post","status-publish","format-standard","hentry","category-geek","tag-compliant","tag-php","tag-sociable","tag-w3c","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/surfrock66.com\/index.php?rest_route=\/wp\/v2\/posts\/728","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/surfrock66.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/surfrock66.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/surfrock66.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/surfrock66.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=728"}],"version-history":[{"count":4,"href":"https:\/\/surfrock66.com\/index.php?rest_route=\/wp\/v2\/posts\/728\/revisions"}],"predecessor-version":[{"id":952,"href":"https:\/\/surfrock66.com\/index.php?rest_route=\/wp\/v2\/posts\/728\/revisions\/952"}],"wp:attachment":[{"href":"https:\/\/surfrock66.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/surfrock66.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=728"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/surfrock66.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}