Commit Graph

132 Commits

Author SHA1 Message Date
Mark Jaquith
47db906431 Fix wp_list_comments() ol/ul/div logic oversight. props junsuijin. fixes #10742
git-svn-id: https://develop.svn.wordpress.org/trunk@12045 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-15 21:47:35 +00:00
Ryan Boren
43c201d458 Remove trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@11930 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-14 14:03:32 +00:00
Andrew Ozz
1e1324df0e Pass Post ID to the get_comments_number filter, props sirzooro, fixes #10705
git-svn-id: https://develop.svn.wordpress.org/trunk@11895 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-01 20:27:03 +00:00
Ryan Boren
1a2506c493 Don't show comments template if post is empty
git-svn-id: https://develop.svn.wordpress.org/trunk@11839 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-18 19:33:56 +00:00
Ryan Boren
f4f70a6479 Prophylactic escapes
git-svn-id: https://develop.svn.wordpress.org/trunk@11838 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-18 16:05:07 +00:00
Ryan Boren
617265d39e esc_url() for ()
git-svn-id: https://develop.svn.wordpress.org/trunk@11724 602fd350-edb4-49c9-b593-d223f7449a82
2009-07-20 01:41:05 +00:00
Ryan Boren
cc56ac3d6d sanitize_comment_cookie() handles the attribute escaping, so remove the extra escaping and leave the phpdoc.
git-svn-id: https://develop.svn.wordpress.org/trunk@11723 602fd350-edb4-49c9-b593-d223f7449a82
2009-07-20 01:22:25 +00:00
Ryan Boren
a692acecdf Escape , , and for use in attributes by default since so many themes don't escape them. Use wp_get_current_commenter() to get the raw values.
git-svn-id: https://develop.svn.wordpress.org/trunk@11722 602fd350-edb4-49c9-b593-d223f7449a82
2009-07-20 01:11:14 +00:00
Andrew Ozz
c7a3747476 Properly escape comment_author_url when displaying, for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@11721 602fd350-edb4-49c9-b593-d223f7449a82
2009-07-18 23:21:50 +00:00
Peter Westwood
6bd9d1dfa5 Rename new function to sanitize_html_class() to hilight exactly what it is for, Fixes #8446.
git-svn-id: https://develop.svn.wordpress.org/trunk@11435 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-22 21:31:42 +00:00
Peter Westwood
f2cfe16e7a Introduce sanitise_css_classname() and use it to give categories, tags, users etc meaningful classnames where possible. Falls back to the id if not. Fixes #8446.
git-svn-id: https://develop.svn.wordpress.org/trunk@11433 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-22 17:44:26 +00:00
Mark Jaquith
ba1c3bdd5b Deprecate sanitize_url() and clean_url() in favor of esc_url_raw() and esc_url()
git-svn-id: https://develop.svn.wordpress.org/trunk@11383 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-18 16:00:33 +00:00
Mark Jaquith
f0336cfa7d deprecate wp_specialchars() in favor of esc_html(). Encode quotes for esc_html() as in esc_attr(), to improve plugin security.
git-svn-id: https://develop.svn.wordpress.org/trunk@11380 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-18 15:11:07 +00:00
Ryan Boren
c4f78ad63a Don't localize dates where not appropriate. Props Denis-de-Bernardy, hakre. fixes #9730
git-svn-id: https://develop.svn.wordpress.org/trunk@11323 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-14 02:00:32 +00:00
Ryan Boren
4cbec5b34a Notice fix. Props mrmist. fixes #8446
git-svn-id: https://develop.svn.wordpress.org/trunk@11316 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-13 19:04:26 +00:00
Ryan Boren
5df6a6ad9d Use IDs instead of slugs in CSS classes ro avoid invalid class names. Props hakre. fixes #8446
git-svn-id: https://develop.svn.wordpress.org/trunk@11306 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-12 17:11:57 +00:00
Peter Westwood
a99e78ba1e Filter out blank urls for commentors. Fixes #5789.
git-svn-id: https://develop.svn.wordpress.org/trunk@11249 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-10 07:26:30 +00:00
Peter Westwood
1ac5aa671c Decode the commenters name why looking up un-moderated comments. Fixes #6992.
git-svn-id: https://develop.svn.wordpress.org/trunk@11220 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-06 20:24:57 +00:00
Mark Jaquith
c638e8d8de _a(), _ea(), _xa(), attr() are now esc_attr__(), esc_attr_e(), esc_attr_x(), esc_attr() -- still short, but less cryptic. see #9650
git-svn-id: https://develop.svn.wordpress.org/trunk@11204 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-05 19:43:53 +00:00
Ryan Boren
fe7c34b6fd s/attribute_escape/attr/. see #9650
git-svn-id: https://develop.svn.wordpress.org/trunk@11109 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-28 05:58:45 +00:00
Ryan Boren
7af4f1b84d Add comment-reply-login class. Props mattwalters. fixes #8633
git-svn-id: https://develop.svn.wordpress.org/trunk@11060 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-22 21:27:07 +00:00
Ryan Boren
12c7093645 Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@11013 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-20 18:18:39 +00:00
Ryan Boren
7908795548 Add some CYA clean_url()s
git-svn-id: https://develop.svn.wordpress.org/trunk@11011 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-20 17:46:46 +00:00
Ryan Boren
1c97a58522 Use comments_open() and pings_open(). Props coffee2code. fixes #9557
git-svn-id: https://develop.svn.wordpress.org/trunk@10982 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-17 07:02:55 +00:00
Ryan Boren
eaa749e545 Add comment-body class. Props docwhat. fixes #9301
git-svn-id: https://develop.svn.wordpress.org/trunk@10961 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-16 22:15:12 +00:00
Ryan Boren
8a4bc7dabe Translate defaults. Props nbachiyski. fixes #9548
git-svn-id: https://develop.svn.wordpress.org/trunk@10953 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-16 18:51:50 +00:00
Ryan Boren
2eae08c088 Updates to wp_login_url() and wp_logout_url(). Use them in more places. Props wnorris. fixes #9536
git-svn-id: https://develop.svn.wordpress.org/trunk@10931 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-14 18:31:49 +00:00
Peter Westwood
3748a7731e Move byuser to a seperate array entry to ease filtering by plugins. Fixes #9465 for trunk props hakre.
git-svn-id: https://develop.svn.wordpress.org/trunk@10875 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-05 17:38:19 +00:00
Ryan Boren
8d00b5d37d Trim trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@10810 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-18 02:43:45 +00:00
Ryan Boren
bcdc0c5021 get_comment_link filter. Props Viper007Bond. fixes #9327
git-svn-id: https://develop.svn.wordpress.org/trunk@10778 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-13 21:58:18 +00:00
Ryan Boren
4006d1a355 Order by comment_date_gmt
git-svn-id: https://develop.svn.wordpress.org/trunk@10732 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-06 08:16:35 +00:00
Ryan Boren
5f5744e143 Allow comments_popup_link() for is_single and is_page. Props AaronCampbell, sivel. fixes #4832
git-svn-id: https://develop.svn.wordpress.org/trunk@10704 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-04 20:26:56 +00:00
Ryan Boren
a60f3571bc Revert accidental bits. see #8708
git-svn-id: https://develop.svn.wordpress.org/trunk@10386 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-20 20:55:57 +00:00
Ryan Boren
9dbfa279af Use guid instead of link for atom comment IDs. fixes #8708 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10385 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-20 20:55:03 +00:00
Andrew Ozz
abdc43a273 Add CSS class to "comment-reply-link", props yoavf, fixes #8836
git-svn-id: https://develop.svn.wordpress.org/trunk@10341 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-10 10:21:28 +00:00
Ryan Boren
d0ce444aee Fix comment links when displaying first page of comments. Props johnconners. fixes #8583 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10196 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-12 20:08:49 +00:00
Ryan Boren
9c4b6c2f92 Update func name. see #8550
git-svn-id: https://develop.svn.wordpress.org/trunk@10180 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-10 21:13:32 +00:00
Ryan Boren
76dc2686b5 Change default add_below. see #8550
git-svn-id: https://develop.svn.wordpress.org/trunk@10179 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-10 21:08:20 +00:00
Ryan Boren
32e006e74c Post reply API updates. see #8550
git-svn-id: https://develop.svn.wordpress.org/trunk@10178 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-10 21:06:13 +00:00
Andrew Ozz
06f8ce3117 Enable support for threaded comments and comment reply on index page, props yoavf, fixes #8550
git-svn-id: https://develop.svn.wordpress.org/trunk@10169 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-10 11:49:37 +00:00
Ryan Boren
baaaa352ba Strip trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@10150 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-09 18:03:31 +00:00
Peter Westwood
8aa27b5013 Link to comments on the page they are on. Fixes #8488 props johnconners.
git-svn-id: https://develop.svn.wordpress.org/trunk@10043 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-04 20:26:43 +00:00
Andrew Ozz
cb9e9eb715 Fix [9854] for i18n, props filosofo
git-svn-id: https://develop.svn.wordpress.org/trunk@9855 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-24 02:13:31 +00:00
Andrew Ozz
68288439aa I18n: fix get_comment_date and edit_comment_link in comment-template.php, props tai. Add class to "Says:", fixes #8142
git-svn-id: https://develop.svn.wordpress.org/trunk@9854 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-24 01:36:23 +00:00
Ryan Boren
c584cc009a Revert [9773]. htmlspecialchars_decode() requires PHP 5.1. see #6992
git-svn-id: https://develop.svn.wordpress.org/trunk@9825 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-21 00:57:31 +00:00
Mark Jaquith
294e85160b Add a "parent" class to comment LIs with children. props filosofo. fixes #8091
git-svn-id: https://develop.svn.wordpress.org/trunk@9812 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-20 13:36:44 +00:00
Mark Jaquith
abecad5356 Improvements for get_comment_link() from Viper007Bond. fixes #8287
git-svn-id: https://develop.svn.wordpress.org/trunk@9808 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-20 06:41:55 +00:00
Mark Jaquith
03792b2e62 Handle blank display_name for commenters. props mrmist. fixes #7494
git-svn-id: https://develop.svn.wordpress.org/trunk@9781 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-19 06:58:44 +00:00
Mark Jaquith
41ad324958 Show pending comments to users with quotes in their name. props regulatethis. fixes #6992
git-svn-id: https://develop.svn.wordpress.org/trunk@9773 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-19 04:58:10 +00:00
Mark Jaquith
0627e9a2fe A couple more hCard CSS classes for comments from wnorris. fixes #8264
git-svn-id: https://develop.svn.wordpress.org/trunk@9764 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-18 22:06:51 +00:00