Commit Graph

74 Commits

Author SHA1 Message Date
Andrew Ozz
85a802aeb9 phpDoc corrections for comment.php, props jacobsantos, fixes #7550
git-svn-id: https://develop.svn.wordpress.org/trunk@8956 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-22 20:21:10 +00:00
Andrew Ozz
79dff2c149 Complete comment.php inline documentation, props jacobsantos, fixes #5578
git-svn-id: https://develop.svn.wordpress.org/trunk@8949 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-22 03:39:41 +00:00
Ryan Boren
6f8cefd5fe Add type argument to wp_list_comments(). Make comments arg optional. Introduce separate_comments(). see #7635
git-svn-id: https://develop.svn.wordpress.org/trunk@8897 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-16 00:23:38 +00:00
Ryan Boren
cb195c411f Close comments for old posts. see #7741
git-svn-id: https://develop.svn.wordpress.org/trunk@8892 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-15 16:26:37 +00:00
Andrew Ozz
622026bb01 Ignore comment_max_links option when zero, props tellyworth, fixes #7699
git-svn-id: https://develop.svn.wordpress.org/trunk@8833 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-06 05:59:56 +00:00
Ryan Boren
6d94c5cfcc Lose USE INDEX on comment_date_gmt. It didn't help performance very much and some people are missing the comment_date_gmt index. see #7664
git-svn-id: https://develop.svn.wordpress.org/trunk@8813 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-05 15:43:26 +00:00
Andrew Ozz
3e9d31fc8f Reply to comments from admin, first run, see #7435
git-svn-id: https://develop.svn.wordpress.org/trunk@8720 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-24 06:56:22 +00:00
Ryan Boren
3d1b545642 comment_approved can be zero, so check with isset instead of empty. fixes #7446
git-svn-id: https://develop.svn.wordpress.org/trunk@8622 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-12 16:23:47 +00:00
Mark Jaquith
3cab99fbd2 Cast to array when using foreach(). Props santosj (and thanks for your perseverance!). fixes #2784
git-svn-id: https://develop.svn.wordpress.org/trunk@8572 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-06 20:31:54 +00:00
Ryan Boren
b370c7862c XML-RPC comments API. see #7446
git-svn-id: https://develop.svn.wordpress.org/trunk@8543 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-04 22:29:37 +00:00
Peter Westwood
5c2ffbf45f PHPDoc updates for comment.php. See #5578 props jacobsantos.
git-svn-id: https://develop.svn.wordpress.org/trunk@8091 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-15 09:34:00 +00:00
Ryan Boren
dfe33306a1 close the socket in discover_pingback_server_uri
git-svn-id: https://develop.svn.wordpress.org/trunk@8052 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-04 23:36:55 +00:00
Ryan Boren
e68bc53d0d Fix duplicate comment notifications. Props MtDewVirus. fixes #6892 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@8004 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-28 15:37:59 +00:00
Ryan Boren
bb09f56b88 Resurrect comment approval notification. Props chmac. fixes #6892 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7917 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-12 16:14:15 +00:00
Mark Jaquith
9ae97a6602 Remove last remaining user level checks in favor of capabilities checks. props filosofo. fixes #6940
git-svn-id: https://develop.svn.wordpress.org/trunk@7912 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-09 00:45:17 +00:00
Ryan Boren
d44e29da33 Use 'counts' cache group. see #6884
git-svn-id: https://develop.svn.wordpress.org/trunk@7878 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-02 19:42:44 +00:00
Ryan Boren
920d0717dd Add per post counting to wp_count_comments(). Props josephscott. fixes #6884
git-svn-id: https://develop.svn.wordpress.org/trunk@7868 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-01 16:52:48 +00:00
Ryan Boren
c3348047a8 Cache comment count and use count API in menu.php
git-svn-id: https://develop.svn.wordpress.org/trunk@7714 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-16 23:45:39 +00:00
Ryan Boren
cd0641c856 Strip slashes before preparing comment insert to avoid double-slashing. Props filosofo. fixes #6738
git-svn-id: https://develop.svn.wordpress.org/trunk@7690 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-15 18:05:08 +00:00
Ryan Boren
91aa0954a4 Add missing comma. see #6644
git-svn-id: https://develop.svn.wordpress.org/trunk@7657 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-14 16:45:12 +00:00
Ryan Boren
fdc05b24f6 Prepare DB queries in more places. Props filosofo. see #6644
git-svn-id: https://develop.svn.wordpress.org/trunk@7645 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-14 16:13:25 +00:00
Mark Jaquith
2a0b33bae4 don't time-throttle comments from Administrators
git-svn-id: https://develop.svn.wordpress.org/trunk@7425 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-20 20:32:18 +00:00
Ryan Boren
cd9d655c72 Multi-byte character safe excerpting from nbachiyski. fixes #6077
git-svn-id: https://develop.svn.wordpress.org/trunk@7140 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-03 21:05:23 +00:00
Ryan Boren
0a28ed62e4 Manage comments rework. WIP
git-svn-id: https://develop.svn.wordpress.org/trunk@6994 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-23 08:33:44 +00:00
Ryan Boren
1101f9750a generic_ping() improvements from fitztrev. fixes #5855
git-svn-id: https://develop.svn.wordpress.org/trunk@6853 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-14 21:50:43 +00:00
Ryan Boren
ce5b15209f Order by and index on comment_date_gmt instead of comment_date to insulate order from offset changes. fixes #5773
git-svn-id: https://develop.svn.wordpress.org/trunk@6736 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-05 23:29:59 +00:00
Ryan Boren
fa13bbbd58 Add key on comment_approved,comment_date to speed up last comment modified queries. fixes #5773
git-svn-id: https://develop.svn.wordpress.org/trunk@6729 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-05 18:04:17 +00:00
Ryan Boren
3a18b96c9b Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@6726 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-05 06:47:27 +00:00
Peter Westwood
14be0c9816 Remove the duplicate code for sanitising IP Addresses we only need to do it once. Fixes #4579.
git-svn-id: https://develop.svn.wordpress.org/trunk@6668 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-26 10:18:33 +00:00
Peter Westwood
0db02d1e0d Allow IPv6 addresses as well. Fixes #4579 props pishmishy.
git-svn-id: https://develop.svn.wordpress.org/trunk@6658 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-25 18:50:52 +00:00
Ryan Boren
86c6a5c1a2 get_col() instead of get_results(). Props fitzrev. fixes #5699
git-svn-id: https://develop.svn.wordpress.org/trunk@6640 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-22 05:50:22 +00:00
Ryan Boren
830b718dcd Eliminate comment_date_gmt <= now from get_lastcommentmodified() queries. fixes #5650
git-svn-id: https://develop.svn.wordpress.org/trunk@6610 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-14 05:59:39 +00:00
Peter Westwood
8151a4a389 Simplify to_ping query. Fixes #5649 props misterbisson.
git-svn-id: https://develop.svn.wordpress.org/trunk@6603 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-12 17:31:17 +00:00
Ryan Boren
a50cd52330 phpdoc for comment.php from darkdragon. fixes #5578
git-svn-id: https://develop.svn.wordpress.org/trunk@6553 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-04 20:03:42 +00:00
Ryan Boren
791a7d7191 Unused var cleanup. Props DD32. see #5418
git-svn-id: https://develop.svn.wordpress.org/trunk@6551 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-04 19:36:34 +00:00
Ryan Boren
851481d869 wp.getCommentCount from josephscott. fixes #5463
git-svn-id: https://develop.svn.wordpress.org/trunk@6534 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-01 18:40:39 +00:00
Ryan Boren
d633240113 Defer comment counting. Props tellyworth. fixes #5557
git-svn-id: https://develop.svn.wordpress.org/trunk@6532 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-01 17:03:52 +00:00
Ryan Boren
3a8b2fcca3 Remove unused vars. Props DD32. see #5418
git-svn-id: https://develop.svn.wordpress.org/trunk@6364 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-06 19:49:33 +00:00
Ryan Boren
376e2d98af Remove old comment_count_cache variable. It's dead.
git-svn-id: https://develop.svn.wordpress.org/trunk@6348 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-29 05:03:25 +00:00
Mark Jaquith
d9c7174ee2 prepare() for wp-includes/ bookmark.php, canonical.php, comment.php, comment-template.php. see #4553
git-svn-id: https://develop.svn.wordpress.org/trunk@6173 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-27 07:34:15 +00:00
Ryan Boren
d8381c8973 Remove hardcoded clean_url on comment_author_url since it is handled on the pre_comment_author_url filter. Props wnorris. fixes #4120
git-svn-id: https://develop.svn.wordpress.org/trunk@5975 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-29 19:04:14 +00:00
Matt Mullenweg
7d95821088 Make the entire comment flood check pluggable as it can cause load problems on large sites.
git-svn-id: https://develop.svn.wordpress.org/trunk@5947 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-27 06:34:18 +00:00
Ryan Boren
b6f4407016 Don't update comments feed last-modified header for unapproved comments. Props James Ballantine and Nazgul. fixes #4618 for 2.3
git-svn-id: https://develop.svn.wordpress.org/trunk@5885 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-16 19:26:01 +00:00
Ryan Boren
3927faeee5 wp_update_comment_count hook from mdawaffe. fixes #4740
git-svn-id: https://develop.svn.wordpress.org/trunk@5869 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-14 03:08:44 +00:00
Mark Jaquith
de83c2db51 Mark pingback as already pinged when the target site says it already got the pingback. props mdawaffe. fixes #4289
git-svn-id: https://develop.svn.wordpress.org/trunk@5772 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-27 23:28:36 +00:00
Ryan Boren
09da00f7fe Use EXTR_SKIP when extracting. see #4468
git-svn-id: https://develop.svn.wordpress.org/trunk@5708 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-14 22:45:40 +00:00
Ryan Boren
163f22deb5 Comment caching. Reduce queries on edit-comments.php page. Add non-persistent cache groups. Hat tip to hovenko. fixes #4387
git-svn-id: https://develop.svn.wordpress.org/trunk@5666 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-08 00:20:22 +00:00
Ryan Boren
d9f2285155 Use the right field name ya idjit.
git-svn-id: https://develop.svn.wordpress.org/trunk@5329 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-27 04:34:44 +00:00
Ryan Boren
b9b37cd426 Consult global comment in get_comment(). Don't show empty edit links.
git-svn-id: https://develop.svn.wordpress.org/trunk@5328 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-27 03:51:36 +00:00
rob1n
2b3f6e3070 Housekeeping -- clean out debug calls.
git-svn-id: https://develop.svn.wordpress.org/trunk@5307 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-24 23:58:51 +00:00