wp-comments-post.php
-
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.
So, my first idea was to just delete wp-comments-post.php since comments were disabled. But, now that I’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’ve renamed it to wp-comments-post-<random number>.php, and changed my theme php files accordingly.
First of all, does anyone anticipate any problem with this?
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.
Cheers,
Dave.p.s. Great job on 1.5 by the way. And great timing – I was about to go and write a new CMS because WP couldn’t do what we now know as ‘pages’, rather than just posts. Phew, saved by the bell.
- The topic ‘wp-comments-post.php’ is closed to new replies.