{"id":150361,"date":"2005-02-21T12:58:55","date_gmt":"2005-02-21T12:58:55","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/wp-comments-postphp\/"},"modified":"2016-08-18T19:34:26","modified_gmt":"2016-08-18T19:34:26","slug":"wp-comments-postphp","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/wp-comments-postphp\/","title":{"rendered":"wp-comments-post.php"},"content":{"rendered":"<p>Looking at my site statistics, I noticed that the most popular page was \/wordpress\/wp-comments-post.php. I thought this was a bit odd since I disabled comment posting due to spam comments ages ago. My conclusion, right or wrong, was that spammers must be just heading straight for wp-comments-post.php.<\/p>\n<p>So, my first idea was to just delete wp-comments-post.php since comments were disabled. But, now that I&#8217;ve upgraded to WP 1.5, with its improved handling of comments etc, I decided to reinstate wp-comments-post.php. Then I came up with a cunning plan. I&#8217;ve renamed it to wp-comments-post-&lt;random number&gt;.php, and changed my theme php files accordingly.<\/p>\n<p>First of all, does anyone anticipate any problem with this?<\/p>\n<p>Secondly, I was surprised to find out that wp-comments-post.php was specifically named in the theme files, expecting to find some function to get the string. Perhaps it should be encapsulated in a function, or setting. Then we could change the post php file in the control panel, or at least in the config.<\/p>\n<p>Cheers,<br \/>\nDave.<\/p>\n<p>p.s. Great job on 1.5 by the way. And great timing &#8211; I was about to go and write a new CMS because WP couldn&#8217;t do what we now know as &#8216;pages&#8217;, rather than just posts. Phew, saved by the bell.<\/p>\n","protected":false},"template":"","class_list":["post-150361","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/150361","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\/150361\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=150361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}