Commit Graph

58 Commits

Author SHA1 Message Date
markjaquith
c671554b03 Update wp-comments-post.php to WP coding conventions. props JeremyVisser. fixes #4573
git-svn-id: http://svn.automattic.com/wordpress/trunk@5777 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-04 16:12:37 +00:00
markjaquith
7f44512c5d Introducing post_status="pending". see #4446 and put any initial bug reports on that ticket
git-svn-id: http://svn.automattic.com/wordpress/trunk@5707 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-14 16:24:28 +00:00
rob1n
9ce729e656 Content-Type, not Content-type, as headers are case sensitive. Props foolswisdom and Nazgul. fixes #3545
git-svn-id: http://svn.automattic.com/wordpress/trunk@5640 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-02 05:21:18 +00:00
ryan
0013fcda22 Requesting wp-comments-post.php with GET should return 405. Props Mike Little. fixes #3797
git-svn-id: http://svn.automattic.com/wordpress/trunk@5128 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-03-28 17:34:42 +00:00
matt
3d21925922 Ryan slays the dragon. (Some of these return WP_Error objects.)
git-svn-id: http://svn.automattic.com/wordpress/trunk@5089 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-03-23 02:05:29 +00:00
matt
7602d17899 (int)er the dragon.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5087 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-03-23 00:59:21 +00:00
markjaquith
95df22248d nonce-protect comments by users with unfiltered_html cap to prevent xsrf/xss. fixes #3973 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@5039 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-03-14 23:10:57 +00:00
markjaquith
92afb1e407 strip tags from comment author before determining emptiness status. props Nazgul. fixes #3839
git-svn-id: http://svn.automattic.com/wordpress/trunk@4939 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-02-25 13:35:16 +00:00
ryan
ac455f6df8 comment_post_redirect and comment_edit_redirect from Mark J. fixes #2590
git-svn-id: http://svn.automattic.com/wordpress/trunk@4260 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2006-09-28 19:16:15 +00:00
ryan
849a0d29d7 Use get_option instead of get_settings. Just 'cause.
git-svn-id: http://svn.automattic.com/wordpress/trunk@4144 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2006-08-30 21:46:31 +00:00
ryan
550ede8d60 wp_die() for comment errors. Props filosofo. fixes #1786
git-svn-id: http://svn.automattic.com/wordpress/trunk@3984 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2006-07-05 20:34:19 +00:00
ryan
25c2dcac3c More comment cookie sanitation.
git-svn-id: http://svn.automattic.com/wordpress/trunk@3577 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2006-02-28 09:49:06 +00:00
ryan
672530a9da Strip all html from comment author name, email, and url.
git-svn-id: http://svn.automattic.com/wordpress/trunk@3574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2006-02-28 04:22:24 +00:00
ryan
5322fc2faa current user cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@3566 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2006-02-22 19:08:55 +00:00
ryan
f34023a445 clean comment author url. fixes #2454
git-svn-id: http://svn.automattic.com/wordpress/trunk@3542 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2006-02-17 01:31:53 +00:00
matt
140f059191 Redirect to permalink instead of referrer. Fixes #1673
git-svn-id: http://svn.automattic.com/wordpress/trunk@2984 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-11-05 22:08:56 +00:00
matt
fa38002141 Don't set for logged in users.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2837 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-09-05 04:14:29 +00:00
ryan
91efba11ad Use wpdb->escape instead of addslashes to prepare DB bound data.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2699 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-07-05 20:47:22 +00:00
matt
09adfadae0 Better headers for CGI enviroments
git-svn-id: http://svn.automattic.com/wordpress/trunk@2623 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-06-09 00:17:43 +00:00
matt
2fd04bb902 Don't accept comments on drafts - http://mosquito.wordpress.org/view.php?id=946
git-svn-id: http://svn.automattic.com/wordpress/trunk@2580 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-05-03 07:31:29 +00:00
matt
0cffb54324 I count good now
git-svn-id: http://svn.automattic.com/wordpress/trunk@2558 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-04-20 19:05:34 +00:00
matt
68b4b3c61c Line ending fixes and commenting cleanups from Scott Reilly
git-svn-id: http://svn.automattic.com/wordpress/trunk@2556 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-04-20 03:37:23 +00:00
matt
8e076bda03 It was a Wednesday. (?!) Hat tip: Lucas Larson
git-svn-id: http://svn.automattic.com/wordpress/trunk@2552 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-04-19 17:24:05 +00:00
ryan
ea350cb922 Trim comment info. http://mosquito.wordpress.org/view.php?id=1183 Props: ryanduff
git-svn-id: http://svn.automattic.com/wordpress/trunk@2490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-03-29 14:52:41 +00:00
ryan
6ecc63bbc7 Validate comment author email. http://mosquito.wordpress.org/view.php?id=982 Props: MtDewVirus
git-svn-id: http://svn.automattic.com/wordpress/trunk@2464 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-03-22 00:29:43 +00:00
ryan
8b36e6be3a Introducing wp_redirect(), first cut. http://mosquito.wordpress.org/view.php?id=592 Props: Toby Simmons
git-svn-id: http://svn.automattic.com/wordpress/trunk@2436 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-03-13 16:36:09 +00:00
ryan
b4f88fc01c Don't require email address from registered authors. http://mosquito.wordpress.org/view.php?id=948 Props: michel_v
git-svn-id: http://svn.automattic.com/wordpress/trunk@2431 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-03-11 03:31:39 +00:00
ryan
4cd9ea1d27 Fix comments popup window reload upon post. http://mosquito.wordpress.org/view.php?id=897
git-svn-id: http://svn.automattic.com/wordpress/trunk@2427 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-03-10 07:01:42 +00:00
rboren
281573e628 Don't strip scheme from comment url. Bug 883.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2359 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-02-16 23:01:02 +00:00
rboren
65381ba8c5 Addslashes to user data before inserting in DB.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2231 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-02-06 19:02:10 +00:00
saxmatt
f59a508df3 Wrong variable - http://mosquito.wordpress.org/view.php?id=786
git-svn-id: http://svn.automattic.com/wordpress/trunk@2221 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-02-05 05:38:57 +00:00
saxmatt
c4649b9979 Comment registration goodness. Hat tip to Jason at noprequisite.com for user_identity code.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2166 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-01-31 06:38:12 +00:00
rboren
9816e56997 Fix comment cookies.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2002 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-12-25 18:01:06 +00:00
rboren
204acb04ae Fix required fields checking. Bug 576. Hat tip: bronski
git-svn-id: http://svn.automattic.com/wordpress/trunk@1985 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-12-20 06:45:19 +00:00
saxmatt
7727b00596 Don't cache. No, really. Hat tip: Kimmo Suominen.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1983 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-12-19 18:43:45 +00:00
saxmatt
fef86c9964 Some code cleanups.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1974 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-12-18 20:56:26 +00:00
saxmatt
766178708e http://mosquito.wordpress.org/view.php?id=558
git-svn-id: http://svn.automattic.com/wordpress/trunk@1968 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-12-17 08:44:30 +00:00
saxmatt
65bbec71d0 Comments refactoring and cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@1964 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-12-16 02:57:05 +00:00
rboren
a6f951101c Refuse comments for post IDs that do not exist.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1854 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-11-15 06:20:28 +00:00
saxmatt
f285ca5c55 Move balanceTags into filters.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1781 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-10-11 22:07:09 +00:00
donncha
4f0449f79b Fixed minor bug - wrong variable passed to get_permalink() - caused
comment redirect to fail.


git-svn-id: http://svn.automattic.com/wordpress/trunk@1756 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-10-06 06:34:19 +00:00
saxmatt
c1f391ae7e Better redirect cleaning.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1751 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-10-05 16:22:31 +00:00
saxmatt
c59a8a8119 Changes to how we do redirects.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1748 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-10-05 08:35:22 +00:00
saxmatt
69e0975c2f Move plugin call to allow plugin authors to get in before notification is sent out.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1739 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-10-04 08:54:04 +00:00
saxmatt
ddba48add2 Track and check user agent for comments.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-09-05 01:50:39 +00:00
rboren
692627e424 Get our slashes straight.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1405 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-06-11 08:02:40 +00:00
saxmatt
25ae03ee65 Giant commit, sorry mailing list people. Move all table names to new $wpdb versions. Works but the whole app needs thorough testing now.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1355 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-05-24 08:22:18 +00:00
saxmatt
0990789400 Fix for cookie paths being set correctly when using a different home setting. Refactored comments-post.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1237 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-05-07 23:21:31 +00:00
saxmatt
10c6b7ea9c Changed to superglobals, and eliminated $use_cache (since we always do).
git-svn-id: http://svn.automattic.com/wordpress/trunk@1108 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-04-20 22:56:47 +00:00
michelvaldrighi
b9c1be51f0 typo
git-svn-id: http://svn.automattic.com/wordpress/trunk@1018 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-03-26 11:26:57 +00:00