{"id":6802540,"date":"2015-12-01T13:22:29","date_gmt":"2015-12-01T13:22:29","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/security-optimisation\/"},"modified":"2016-08-30T20:50:48","modified_gmt":"2016-08-30T20:50:48","slug":"security-optimisation","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/security-optimisation\/","title":{"rendered":"security optimisation"},"content":{"rendered":"<p>hi,<br \/>\ni noticed that posting a comment while being connected adds my id in the source code, not very secure i think, after googling i found <a href=\"http:\/\/bavotasan.com\/2010\/small-security-hole-in-wordpress-comments\/\">this post<\/a>, just add to your functions.php child theme to hide your id ; maybe ts would be useful to include it in parent&#8217;s theme functions.php ?<\/p>\n<pre><code>function remove_comment_author_class( $classes ) {\n\tforeach( $classes as $key =&gt; $class ) {\n\t\tif(strstr($class, &quot;comment-author-&quot;)) {\n\t\t\tunset( $classes[$key] );\n\t\t}\n\t}\n\treturn $classes;\n}\nadd_filter( &#039;comment_class&#039; , &#039;remove_comment_author_class&#039; );<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-6802540","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6802540","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\/6802540\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6802540"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}