Commit Graph

202 Commits

Author SHA1 Message Date
Dion Hulse 17c58ec609 Revert debug cruft from r17052. See #15885
git-svn-id: https://develop.svn.wordpress.org/trunk@17053 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-19 04:58:09 +00:00
Dion Hulse e2024b81fc Fix Pings/Trackback comment table filter. Props greuben. Fixes #15885
git-svn-id: https://develop.svn.wordpress.org/trunk@17052 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-19 04:55:46 +00:00
Ryan Boren c1e26ef82c Add like_escape() to some queries. fixes #15764
git-svn-id: https://develop.svn.wordpress.org/trunk@16999 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-16 14:22:41 +00:00
Mark Jaquith 4ba9c5d14a Use prepare() instead of addslashes(). props wpmuguru.
git-svn-id: https://develop.svn.wordpress.org/trunk@16643 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-01 01:51:32 +00:00
Mark Jaquith 0488b9cbf4 Drop pingback/trackback blogroll whitelisting feature. Too many ways to abuse it. props avereha. props vladimir_kolesnikov. fixes #13887 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@16637 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-30 22:46:35 +00:00
Ryan Boren af32327ae0 Prepare properly. Props Vladimir Kolesnikov.
git-svn-id: https://develop.svn.wordpress.org/trunk@16624 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-30 20:04:11 +00:00
Ryan Boren 4b33a0e9c4 Pinking shears
git-svn-id: https://develop.svn.wordpress.org/trunk@16438 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 18:47:34 +00:00
scribu 32b416f959 Improve hook readability via curly brackets. Props jjj for initial patch. Fixes #15422
git-svn-id: https://develop.svn.wordpress.org/trunk@16365 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-14 15:50:02 +00:00
scribu 9967d9da2a Always apply comment_text filter in check_comment(). Props hakre. Fixes #14680
git-svn-id: https://develop.svn.wordpress.org/trunk@16357 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-13 22:30:36 +00:00
scribu a8160ed916 Kill WP_Object_Query. See #15032
git-svn-id: https://develop.svn.wordpress.org/trunk@16353 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-13 18:32:43 +00:00
scribu e19c83933a Split get_search_sql(). See #15170. See #15032
git-svn-id: https://develop.svn.wordpress.org/trunk@16351 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-13 18:18:45 +00:00
Peter Westwood 804b3a0747 Rename new classes to match our coding standards. Fixes #15280.
git-svn-id: https://develop.svn.wordpress.org/trunk@16149 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-02 08:29:07 +00:00
Peter Westwood c8366c5966 Don't pass deprecated argument to discover_pingback_server_uri!
git-svn-id: https://develop.svn.wordpress.org/trunk@16068 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 07:06:48 +00:00
Peter Westwood 4cc293abd2 Switch to using WP_HTTP_IXR_Client in core. See #10588.
git-svn-id: https://develop.svn.wordpress.org/trunk@16065 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 22:15:54 +00:00
scribu 665b15790d Make comment clauses more similar to post clauses. See #15019
git-svn-id: https://develop.svn.wordpress.org/trunk@16020 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 19:05:39 +00:00
scribu 1f23d12a79 Add filters to WP_Comment_Query. Props sc0ttkclark. Fixes #15019
git-svn-id: https://develop.svn.wordpress.org/trunk@16019 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 18:49:45 +00:00
scribu 174c0acfb4 Move get() and set() methods from WP_Query to WP_Object_Query. See #15032
git-svn-id: https://develop.svn.wordpress.org/trunk@16018 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 18:16:52 +00:00
Andrew Nacin fb4e38b0e7 Pinking shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@15843 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-19 07:48:22 +00:00
scribu 12fdf54fdd Move _wp_search_sql() into WP_Object_Query. Introduce WP_Comment_Search. See #15032
git-svn-id: https://develop.svn.wordpress.org/trunk@15723 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 21:05:31 +00:00
scribu d9039c38d7 Apply filter to wp_get_current_commenter(). Fixes #14878
git-svn-id: https://develop.svn.wordpress.org/trunk@15623 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-16 20:48:18 +00:00
Andrew Nacin ab35b9ca6d Pass some context to the pre_comment_approved hook. props coffee2code, fixes #14802.
git-svn-id: https://develop.svn.wordpress.org/trunk@15592 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 14:36:35 +00:00
Andrew Nacin 9494e4ce7e Phpdoc argument/@param cleanups. props duck_, see #14783.
git-svn-id: https://develop.svn.wordpress.org/trunk@15590 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 11:21:11 +00:00
Andrew Nacin d62e022459 Add a note about REMOTE_ADDR behind proxies.
git-svn-id: https://develop.svn.wordpress.org/trunk@15560 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-03 10:18:32 +00:00
Ryan Boren 954dd7f59d Update last_changed when cleaning comment cache. fixes #14713
git-svn-id: https://develop.svn.wordpress.org/trunk@15550 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-30 19:59:16 +00:00
scribu fb9394167f Ajaxify list-type screens in the admin. See #14579
git-svn-id: https://develop.svn.wordpress.org/trunk@15491 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-11 21:54:51 +00:00
Andrew Nacin 122c6db06a Add $force_delete to wp_delete_comment(). see #12766, see #11470.
git-svn-id: https://develop.svn.wordpress.org/trunk@13995 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-04 12:20:19 +00:00
Andrew Nacin 7e33f4a479 Fix notice in wp_new_comment(). fixes #10854.
git-svn-id: https://develop.svn.wordpress.org/trunk@13937 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-02 05:01:13 +00:00
Andrew Nacin d43df7123a Change @since 2.9 to @since 2.9.0.
git-svn-id: https://develop.svn.wordpress.org/trunk@13829 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-26 19:23:39 +00:00
Andrew Nacin d53d09ca48 Fix notice without breaking comment notifications. See r13150, see #11830
git-svn-id: https://develop.svn.wordpress.org/trunk@13801 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-22 16:06:55 +00:00
Andrew Nacin 91b033f819 Provide filter to allow including comment author's URL in comment moderation link count. see #11684
git-svn-id: https://develop.svn.wordpress.org/trunk@13513 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-28 20:02:14 +00:00
Andrew Nacin 8f6c9e395f Add comment_duplicate_trigger hook that is fired when a duplicate comment is detected. Fixes #12188
git-svn-id: https://develop.svn.wordpress.org/trunk@13434 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-26 19:06:09 +00:00
Andrew Nacin c9dfb91763 Spelling and grammar fun. Fixes #11875 props cnorris23
git-svn-id: https://develop.svn.wordpress.org/trunk@13382 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-24 20:13:23 +00:00
Andrew Nacin fb4b78214b Don't use private wpdb vars. See #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@13353 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-24 00:18:18 +00:00
Dion Hulse 468d0d7cff Variable Cleanup, Unused variables, Typo'd variables, unused code blocks. Fixes #12299
git-svn-id: https://develop.svn.wordpress.org/trunk@13242 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-20 02:01:46 +00:00
Andrew Nacin c4da5360d4 Adjust regex for counting links in a comment when checking if it needs to be held for moderation. Also fix notice in wp_new_comment(). see #11830
git-svn-id: https://develop.svn.wordpress.org/trunk@13150 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-14 10:59:37 +00:00
Ryan Boren 8ef8b7bad5 Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@12733 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-15 22:11:12 +00:00
Peter Westwood 2e2ad12171 Add missing version numbers to _deprecated_argument() calls.
Remove deprecated argument from xfn_check() calls.
Pass version number to deprecated_file_included, deprecated_function_run and deprecated_argument_run actions.
Fixes #11386 props nacin.

git-svn-id: https://develop.svn.wordpress.org/trunk@12680 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-09 10:03:55 +00:00
Ryan Boren 974b6c1ce4 Introduce home_url(). Props Denis-de-Bernardy, hakre. see #9008
git-svn-id: https://develop.svn.wordpress.org/trunk@12598 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-04 17:23:29 +00:00
Peter Westwood a752e6b561 Updates and improvements to _depreceated_argument. See #11386 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12584 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-30 16:23:39 +00:00
Peter Westwood b607185b4e Fix typo in _deprecated_argument() and start using _deprecated_argument() in wp-includes files. See #11386 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12537 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-24 11:12:04 +00:00
Ryan Boren 3c37b8fe3a Add more orderby and select options to get_comments. Props filosofo. fixes #10668
git-svn-id: https://develop.svn.wordpress.org/trunk@12518 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 16:16:13 +00:00
Peter Westwood 949645fa78 Check that there is a comment_agent to filter and otherwise filter an empty string. Fixes a notice during import from old WXR files. See #11484.
git-svn-id: https://develop.svn.wordpress.org/trunk@12470 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-21 15:35:00 +00:00
Ryan Boren 047c6a7429 Delete all comment meta when deleting a comment. Props nacin. fixes #11463
git-svn-id: https://develop.svn.wordpress.org/trunk@12430 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-17 17:54:23 +00:00
Ryan Boren 3820e511a6 Delete all comment meta when deleting a comment. Props nacin. fixes #11463
git-svn-id: https://develop.svn.wordpress.org/trunk@12428 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-17 17:10:40 +00:00
Peter Westwood 0d2d7cc5a9 Fix phpDoc for Comment Meta functions to refer to comments not posts. See #11462 props sirzooro.
git-svn-id: https://develop.svn.wordpress.org/trunk@12420 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-16 22:13:53 +00:00
Peter Westwood 81edd5a728 Restore the check for trueness on $user_id so we don't run the queries or create the objects. Fixes #11419 props Denis-de-Bernardy.
git-svn-id: https://develop.svn.wordpress.org/trunk@12391 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-13 17:32:14 +00:00
Peter Westwood 952cfa477f Check that $user_id is set. For non-logged in users it is not set so we get a notice.
git-svn-id: https://develop.svn.wordpress.org/trunk@12389 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-13 11:43:19 +00:00
Mark Jaquith ee79c9e7d0 Optimize Whoa Cowboy query. Only look back one hour. props mdawaffe. fixes #4366
git-svn-id: https://develop.svn.wordpress.org/trunk@12376 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-11 23:29:19 +00:00
Peter Westwood ddea52b0e9 Allow plugins to filter the UserAgent used for PingBack requests. Fixes #11317 props mtdewvirus.
git-svn-id: https://develop.svn.wordpress.org/trunk@12321 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-06 14:28:35 +00:00
Ryan Boren 42e6256e10 Accept either user_id or user_ID. Remove user_id global. see #11271 #11222
git-svn-id: https://develop.svn.wordpress.org/trunk@12300 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-01 02:06:02 +00:00