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
Ryan Boren
2a1dcbf551
comment status transition was broken due to sneaky reference return in &get_comment. Props skeltoac
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12292 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-29 20:05:39 +00:00
Andrew Ozz
365fea47fc
"Trash" fixes, props caesarsgrunt, see #4529
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12290 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-28 03:56:20 +00:00
Andrew Ozz
a675276ce5
Undo for setting a comment as spam, props caesarsgrunt, fixes #11260 , see #4529
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12286 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-27 10:34:09 +00:00
Andrew Ozz
387ac8c9b5
Fix notices and phpdoc, props hakre, fixes #10758
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12284 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-26 11:29:54 +00:00
Ryan Boren
27db8a8161
Standardize on user_id instead of user_ID when passing comment data. fixes #11222
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12267 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-23 21:04:11 +00:00
Andrew Ozz
54208d4973
Ignore trashed comments for duplicate comment check, props scribu, fixes #10944
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12254 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-21 11:31:21 +00:00
Ryan Boren
e540e6b3ce
Return if no comment queried
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12223 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-19 17:58:11 +00:00