Commit Graph

308 Commits

Author SHA1 Message Date
ryan
7b49ad8493 Introduce get_edit_user_link(). Props scribu, georgestephanis, johnbillion. fixes #14787 see #20307
git-svn-id: http://core.svn.wordpress.org/trunk@21364 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-30 18:30:03 +00:00
ryan
50fc51d8d2 Don't attempt to define the COMMENTS_TEMPLATE constant twice. Props kitchin. fixes #21337
git-svn-id: http://core.svn.wordpress.org/trunk@21330 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-25 17:54:35 +00:00
ryan
ef95736bce Set the global comment var before invoking callbacks in wp_list_comments(). Props sirzooro. fixes #21184
git-svn-id: http://core.svn.wordpress.org/trunk@21324 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-25 16:27:48 +00:00
ryan
01dd4131b8 Don't allow unfiltered HTML comments from a frame. Props nacin. fixes #20812
git-svn-id: http://core.svn.wordpress.org/trunk@20974 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-01 20:47:08 +00:00
nacin
5ab06c336e In comment_form(), pass the $post_id to comments_open(). props insertvisionhere. fixes #20572.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20641 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-30 01:47:22 +00:00
ryan
de41bc288b Introduce WP_User::exists(). see #20372
git-svn-id: http://svn.automattic.com/wordpress/trunk@20378 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-06 19:18:45 +00:00
ryan
e3b46b25d3 Lose EOF ?>. Clean up EOF newlines. fixes #12307
git-svn-id: http://svn.automattic.com/wordpress/trunk@19712 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-01-08 17:01:11 +00:00
ryan
83b131f8e3 User lowercase true, false, null instead of uppercase. Props c3mdigital, mfields. fixes #16302
git-svn-id: http://svn.automattic.com/wordpress/trunk@19687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-01-05 20:50:54 +00:00
ryan
fd1393ab7a Clear strict notices for the walkers. fixes #19249
git-svn-id: http://svn.automattic.com/wordpress/trunk@19679 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-01-04 23:03:46 +00:00
ryan
07ff8b216b Use one space, not two, after trailing punctuation. fixes #19537
git-svn-id: http://svn.automattic.com/wordpress/trunk@19593 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-12-13 23:45:31 +00:00
nacin
30ff37104d Don't use $user_identity global. props duck_. fixes #19146.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19284 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-14 21:35:44 +00:00
duck_
e4ed63fc6f Fix typos in documentation (wp-includes/[a-h]). See #18560.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18633 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-09-03 16:02:41 +00:00
ryan
29592dafb6 Pass post id along to *comment_id_fields(). Props natecook. fixes #17193
git-svn-id: http://svn.automattic.com/wordpress/trunk@17812 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-05-05 19:33:47 +00:00
nacin
e1eec3925a More @since. props SergeyBiryukov, fixes #15445.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17071 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-12-20 09:25:21 +00:00
westi
e69d948ca4 Revert [16649] - The core output on this is for logged out users only - need to rework this if we want to move the output. See #14510
git-svn-id: http://svn.automattic.com/wordpress/trunk@16704 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-12-03 09:44:17 +00:00
ryan
a031db170f Fix comment_notes_before. Props mrmist. fixes #14510
git-svn-id: http://svn.automattic.com/wordpress/trunk@16649 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-12-01 16:52:32 +00:00
nbachiyski
368eefd69c comments_number() doesn't need to call get_the_ID(), because get_comments_number() does it if post ID is missing
git-svn-id: http://svn.automattic.com/wordpress/trunk@16613 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-29 17:34:43 +00:00
scribu
41592d266b Remove nofollow on comment reply links. Fixes #10550
git-svn-id: http://svn.automattic.com/wordpress/trunk@16230 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-07 01:06:37 +00:00
nacin
0552424317 Revert submit_button() for wp-includes, setup-config, install, login, signup. see [16061], see #15064, fixes #15247.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16066 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-29 00:31:27 +00:00
markjaquith
fc6e89da45 Expand submit_button() capabilities. Replace all (or almost all) manual HTML instances in WP. props sbressler. see #15064
git-svn-id: http://svn.automattic.com/wordpress/trunk@16061 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-28 21:56:43 +00:00
nacin
a07ec69bce Add a class to 'Your comment is awaiting moderation' in the comment walker and Twenty Ten's callback. fixes #15206.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16028 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-28 03:58:51 +00:00
nacin
76b4a3cac7 Pass comment ID from comment_text to get_comment_text. Also add the comment object as context to the filter. fixes #14261
git-svn-id: http://svn.automattic.com/wordpress/trunk@15957 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-25 03:11:01 +00:00
nacin
5a20c05d27 Phpdoc argument/@param cleanups. props duck_, see #14783.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-09-07 11:21:11 +00:00
nacin
650f97e684 Adjustments to [15549]. See #11624.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15563 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-09-04 15:51:04 +00:00
scribu
950901ca92 Don't use the global anymore. Fixes #11624
git-svn-id: http://svn.automattic.com/wordpress/trunk@15549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-08-28 11:57:28 +00:00
westi
64100e8783 Fix the theme compat file require paths to be fully absolute so they don't rely on a particular php path to work. Fixes #14315 for trunk props dougal.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15433 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-07-16 09:40:09 +00:00
nacin
69b10a2948 Restore trackback_rdf(). reverts [13991]. fixes #11139 for trunk.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15363 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-07-03 05:55:04 +00:00
dd32
a14d289755 Alot more tabs. Props jacobsantos & Viper007bond. See #14147
git-svn-id: http://svn.automattic.com/wordpress/trunk@15355 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-06-30 00:05:18 +00:00
nacin
f60838c8f9 s/echos/echoes/ in phpdoc. props demetris, fixes #13742.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15148 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-06-06 05:16:32 +00:00
nacin
249a6cdd18 Use p instead of definition list for allowed tags in comment_form(). props demetris. Style the new markup in Twenty Ten. see #10910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14689 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-16 06:38:58 +00:00
nacin
a03dfef3fd Fix typos in phpdoc for comment_form(). props demetris, fixes #10910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-10 08:47:13 +00:00
ryan
7b7243d94a Strip trailing whites.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-03 20:26:11 +00:00
nbachiyski
2a1d6e141b Take out the leading space from the translatable string
git-svn-id: http://svn.automattic.com/wordpress/trunk@14378 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-03 18:48:33 +00:00
ryan
172aa06718 Revert [14347] and [14372]. It broke more than we expected. Try again in 3.1. see #13051
git-svn-id: http://svn.automattic.com/wordpress/trunk@14374 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-03 18:16:22 +00:00
westi
ae468d52ac First pass of compatibility code for old themes which relied on using templates from the default theme without expressly identifying it as the parent theme.
Fixes #12425 and #13009.
The fallback to these template files is now depreceated and will be removed in a future version.


git-svn-id: http://svn.automattic.com/wordpress/trunk@14365 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-03 09:57:24 +00:00
ryan
91354eefee Escape links by default. Props alexkingorg. see #13051
git-svn-id: http://svn.automattic.com/wordpress/trunk@14347 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-02 22:53:59 +00:00
westi
90873d5063 Revert [14268] - It is much better to use JavaScript for this kind of enhancement. Output buffering is too fragile. See #12564.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14274 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-28 07:17:20 +00:00
nacin
b8b6090959 Add full HTML filter to comment_form(), along with an echo arg. props joostdevalk, fixes #12564.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14268 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-28 04:28:51 +00:00
nacin
e9602ae765 Clarify language for non-publication of emails. props lloydbudd, fixes #13026.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14195 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-23 15:01:21 +00:00
nacin
6bad016e80 Switch to simpler language regarding publication of email addresses in comment_form() template. props bumbu, see #13026.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14132 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-18 04:49:19 +00:00
dd32
7058bb3db8 Respect the comment ID parameter in comment_excerpt(). Props tenpura. Fixes #12874
git-svn-id: http://svn.automattic.com/wordpress/trunk@14128 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-18 03:45:24 +00:00
nacin
e8c8ef08f0 Move stray closing p tag out of a translation. props chrisbliss18, fixes #13036.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14119 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-16 22:27:37 +00:00
nacin
045c407a3c Remove tabindex from comment_form(). fixes #12963
git-svn-id: http://svn.automattic.com/wordpress/trunk@14114 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-16 18:29:39 +00:00
nacin
c229cdcba7 Spacing/coding cleanup of comment_form(). see #13016.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14093 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-15 16:25:08 +00:00
nacin
b8917ef747 Update the html comments in comment_form(). props iandstewart, fixes #13016.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-15 16:16:51 +00:00
ryan
687ce2919f Use WP_FALLBACK_THEME instead of default. Props MichaelH. see #12846
git-svn-id: http://svn.automattic.com/wordpress/trunk@14080 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-13 21:56:57 +00:00
nacin
ccb93ac4c7 Add @since.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14073 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-11 15:23:20 +00:00
dd32
442d41291a Tweak new strings for better typography. Props demetris. Fixes #12962
git-svn-id: http://svn.automattic.com/wordpress/trunk@14070 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-11 10:41:54 +00:00
dd32
9cd8dd44c6 Introduce get_comment_id_fields() as a Getter for comment_id_fields(). Introduce a filter on the output to add extra fields. Props zoranzaric. Fixes #12893
git-svn-id: http://svn.automattic.com/wordpress/trunk@14067 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-11 08:56:18 +00:00
nacin
1a4a30fcf1 Deprecate trackback_rdf(). fixes #11139
git-svn-id: http://svn.automattic.com/wordpress/trunk@13991 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-04 10:04:56 +00:00
dd32
0025a953ac Reduce Code duplication. Rely on parent class to do the heavy lifting, just tack the comment addition on the end. See #8841
git-svn-id: http://svn.automattic.com/wordpress/trunk@13939 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-02 05:33:18 +00:00
dd32
364faf559e Move children of nested levels not shown to after the current element, not inside it like children. See #8841
git-svn-id: http://svn.automattic.com/wordpress/trunk@13938 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-02 05:13:57 +00:00
dd32
1d0b284a7c Fix out-of-order comments when comment nesting is reduced. Displays child comments on the same level after its "parent" in the case that the max_depth has been hit. See #8841
git-svn-id: http://svn.automattic.com/wordpress/trunk@13932 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-02 04:05:01 +00:00
nacin
a7feaed0e6 Change @since 3.0 to @since 3.0.0.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13827 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-26 19:13:36 +00:00
nacin
8c8bf5039f Remove unnecessary ternary operators such as (expr) ? true : false.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13769 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-19 21:15:00 +00:00
dd32
cb8fd85d1e Prefer $comment::comment_post_ID over $post global. Fixes #12217
git-svn-id: http://svn.automattic.com/wordpress/trunk@13396 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-25 07:56:25 +00:00
nacin
8bcc5969dc Spelling and grammar fun. Fixes #11875 props cnorris23
git-svn-id: http://svn.automattic.com/wordpress/trunk@13382 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-24 20:13:23 +00:00
ryan
dbfb51c6e0 Trim trailing whites
git-svn-id: http://svn.automattic.com/wordpress/trunk@13268 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-21 00:03:42 +00:00
dd32
679250491d Variable Cleanup, Unused variables, Typo'd variables, unused code blocks. Fixes #12299
git-svn-id: http://svn.automattic.com/wordpress/trunk@13242 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-20 02:01:46 +00:00
ryan
a48e17cca1 Comment form output tweaks. Props beaulebens. see #10910
git-svn-id: http://svn.automattic.com/wordpress/trunk@13180 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-17 19:28:03 +00:00
ryan
88f317209e Add optional post ID arg to get_comments_link(). Props scribu. fixes #12249
git-svn-id: http://svn.automattic.com/wordpress/trunk@13171 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-16 17:54:19 +00:00
ryan
b34fd9b448 Change comment_form() markup to match twentyten. Props beaulebens. see #10910
git-svn-id: http://svn.automattic.com/wordpress/trunk@13030 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-08 20:54:29 +00:00
ryan
4f4d2d446d Use comment_form instead of comments_form as the name of the hook. Props greenshady. see #10910
git-svn-id: http://svn.automattic.com/wordpress/trunk@13028 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-08 18:27:02 +00:00
ryan
699387f747 Remove trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@12859 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-26 22:49:05 +00:00
ryan
dd69637c65 Add optional comment ID argument to comment template functions. Props filosofo. fixes #12006
git-svn-id: http://svn.automattic.com/wordpress/trunk@12821 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-25 17:34:13 +00:00
ryan
44ba9a0ec0 Update @since. see #10910
git-svn-id: http://svn.automattic.com/wordpress/trunk@12811 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-23 18:13:31 +00:00
ryan
41eeb07634 comment_form(), first pass. Props beaulebens. see #10910
git-svn-id: http://svn.automattic.com/wordpress/trunk@12810 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-23 18:06:37 +00:00
ryan
94859834fc i18n fixes. Props nbachiyski. fixes #11954
git-svn-id: http://svn.automattic.com/wordpress/trunk@12789 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-21 21:37:43 +00:00
westi
bf4a5241e1 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: http://svn.automattic.com/wordpress/trunk@12680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-09 10:03:55 +00:00
westi
f05ee1844f Switch to passing arrays instead of query strings to functions. Fixes #6647 props filosofo and hakre.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12657 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-08 08:34:39 +00:00
ryan
ec8e347792 Introduce home_url(). Props Denis-de-Bernardy, hakre. see #9008
git-svn-id: http://svn.automattic.com/wordpress/trunk@12598 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-04 17:23:29 +00:00
westi
0163da57c4 Don't pass deprecated argument to comments_number().
git-svn-id: http://svn.automattic.com/wordpress/trunk@12586 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-30 16:54:28 +00:00
westi
ff7831207c Updates and improvements to _depreceated_argument. See #11386 props nacin.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12584 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-30 16:23:39 +00:00
westi
47a7b1b003 Fix typo in _deprecated_argument() and start using _deprecated_argument() in wp-includes files. See #11386 props nacin.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-24 11:12:04 +00:00
azaozz
72990cd094 Add another arg to 'get_comment_time' filter, props miqrogroove, fixes #11421
git-svn-id: http://svn.automattic.com/wordpress/trunk@12396 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-14 10:21:58 +00:00
markjaquith
182ec07a44 Strip HTML from comments_popup_link title attribute. props ewestp, xenlab. fixes #10997
git-svn-id: http://svn.automattic.com/wordpress/trunk@12362 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-10 09:13:11 +00:00
markjaquith
57b5a0cc30 Fix wp_list_comments() ol/ul/div logic oversight. props junsuijin. fixes #10742
git-svn-id: http://svn.automattic.com/wordpress/trunk@12045 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-15 21:47:35 +00:00
ryan
8e3808bce2 Remove trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@11930 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-09-14 14:03:32 +00:00
azaozz
0c521408ba Pass Post ID to the get_comments_number filter, props sirzooro, fixes #10705
git-svn-id: http://svn.automattic.com/wordpress/trunk@11895 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-09-01 20:27:03 +00:00
ryan
91ef366300 Don't show comments template if post is empty
git-svn-id: http://svn.automattic.com/wordpress/trunk@11839 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-08-18 19:33:56 +00:00
ryan
8513b29792 Prophylactic escapes
git-svn-id: http://svn.automattic.com/wordpress/trunk@11838 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-08-18 16:05:07 +00:00
ryan
af409e2dae esc_url() for ()
git-svn-id: http://svn.automattic.com/wordpress/trunk@11724 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-07-20 01:41:05 +00:00
ryan
3e73668bca sanitize_comment_cookie() handles the attribute escaping, so remove the extra escaping and leave the phpdoc.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11723 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-07-20 01:22:25 +00:00
ryan
1466e9954b 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: http://svn.automattic.com/wordpress/trunk@11722 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-07-20 01:11:14 +00:00
azaozz
8dff8f9f73 Properly escape comment_author_url when displaying, for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@11721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-07-18 23:21:50 +00:00
westi
fc3b5ba6da Rename new function to sanitize_html_class() to hilight exactly what it is for, Fixes #8446.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11435 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-22 21:31:42 +00:00
westi
108f7c1063 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: http://svn.automattic.com/wordpress/trunk@11433 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-22 17:44:26 +00:00
markjaquith
3ebf837ced Deprecate sanitize_url() and clean_url() in favor of esc_url_raw() and esc_url()
git-svn-id: http://svn.automattic.com/wordpress/trunk@11383 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-18 16:00:33 +00:00
markjaquith
119b39cec2 deprecate wp_specialchars() in favor of esc_html(). Encode quotes for esc_html() as in esc_attr(), to improve plugin security.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11380 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-18 15:11:07 +00:00
ryan
1354d0660a Don't localize dates where not appropriate. Props Denis-de-Bernardy, hakre. fixes #9730
git-svn-id: http://svn.automattic.com/wordpress/trunk@11323 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-14 02:00:32 +00:00
ryan
75ec19a860 Notice fix. Props mrmist. fixes #8446
git-svn-id: http://svn.automattic.com/wordpress/trunk@11316 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-13 19:04:26 +00:00
ryan
a0c7b65f7b Use IDs instead of slugs in CSS classes ro avoid invalid class names. Props hakre. fixes #8446
git-svn-id: http://svn.automattic.com/wordpress/trunk@11306 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-12 17:11:57 +00:00
westi
a977c155bf Filter out blank urls for commentors. Fixes #5789.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11249 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-10 07:26:30 +00:00
westi
e89d78ee08 Decode the commenters name why looking up un-moderated comments. Fixes #6992.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11220 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-06 20:24:57 +00:00
markjaquith
6c2ffddf31 _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: http://svn.automattic.com/wordpress/trunk@11204 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-05 19:43:53 +00:00
ryan
2d489767bb s/attribute_escape/attr/. see #9650
git-svn-id: http://svn.automattic.com/wordpress/trunk@11109 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-28 05:58:45 +00:00
ryan
d90ba6085f Add comment-reply-login class. Props mattwalters. fixes #8633
git-svn-id: http://svn.automattic.com/wordpress/trunk@11060 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-22 21:27:07 +00:00
ryan
a61bc0ec8a Trailing whitespace cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@11013 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-20 18:18:39 +00:00
ryan
67533a8584 Add some CYA clean_url()s
git-svn-id: http://svn.automattic.com/wordpress/trunk@11011 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-20 17:46:46 +00:00
ryan
4754d22576 Use comments_open() and pings_open(). Props coffee2code. fixes #9557
git-svn-id: http://svn.automattic.com/wordpress/trunk@10982 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-17 07:02:55 +00:00
ryan
58aec06ad9 Add comment-body class. Props docwhat. fixes #9301
git-svn-id: http://svn.automattic.com/wordpress/trunk@10961 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-16 22:15:12 +00:00
ryan
75bbf754bd Translate defaults. Props nbachiyski. fixes #9548
git-svn-id: http://svn.automattic.com/wordpress/trunk@10953 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-16 18:51:50 +00:00
ryan
fe648c9e20 Updates to wp_login_url() and wp_logout_url(). Use them in more places. Props wnorris. fixes #9536
git-svn-id: http://svn.automattic.com/wordpress/trunk@10931 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-14 18:31:49 +00:00
westi
a6ed4323c5 Move byuser to a seperate array entry to ease filtering by plugins. Fixes #9465 for trunk props hakre.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10875 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-05 17:38:19 +00:00
ryan
e8b6fe7347 Trim trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@10810 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-18 02:43:45 +00:00
ryan
cba3b3d41c get_comment_link filter. Props Viper007Bond. fixes #9327
git-svn-id: http://svn.automattic.com/wordpress/trunk@10778 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-13 21:58:18 +00:00
ryan
db7e77a251 Order by comment_date_gmt
git-svn-id: http://svn.automattic.com/wordpress/trunk@10732 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-06 08:16:35 +00:00
ryan
27a7f46249 Allow comments_popup_link() for is_single and is_page. Props AaronCampbell, sivel. fixes #4832
git-svn-id: http://svn.automattic.com/wordpress/trunk@10704 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-04 20:26:56 +00:00
ryan
cf3f91b0e6 Revert accidental bits. see #8708
git-svn-id: http://svn.automattic.com/wordpress/trunk@10386 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-01-20 20:55:57 +00:00
ryan
ee73ce298c Use guid instead of link for atom comment IDs. fixes #8708 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@10385 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-01-20 20:55:03 +00:00
azaozz
1c20ec7120 Add CSS class to "comment-reply-link", props yoavf, fixes #8836
git-svn-id: http://svn.automattic.com/wordpress/trunk@10341 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-01-10 10:21:28 +00:00
ryan
4fb1a0a76b Fix comment links when displaying first page of comments. Props johnconners. fixes #8583 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@10196 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-12 20:08:49 +00:00
ryan
8c1c46d5f0 Update func name. see #8550
git-svn-id: http://svn.automattic.com/wordpress/trunk@10180 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-10 21:13:32 +00:00
ryan
e372e7f39a Change default add_below. see #8550
git-svn-id: http://svn.automattic.com/wordpress/trunk@10179 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-10 21:08:20 +00:00
ryan
7105e62a48 Post reply API updates. see #8550
git-svn-id: http://svn.automattic.com/wordpress/trunk@10178 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-10 21:06:13 +00:00
azaozz
1dca6a90ec Enable support for threaded comments and comment reply on index page, props yoavf, fixes #8550
git-svn-id: http://svn.automattic.com/wordpress/trunk@10169 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-10 11:49:37 +00:00
ryan
e89192b1a8 Strip trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@10150 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-09 18:03:31 +00:00
westi
7f357e7188 Link to comments on the page they are on. Fixes #8488 props johnconners.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10043 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-04 20:26:43 +00:00
azaozz
d12e30a739 Fix [9854] for i18n, props filosofo
git-svn-id: http://svn.automattic.com/wordpress/trunk@9855 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-24 02:13:31 +00:00
azaozz
6efc35e1c9 I18n: fix get_comment_date and edit_comment_link in comment-template.php, props tai. Add class to "Says:", fixes #8142
git-svn-id: http://svn.automattic.com/wordpress/trunk@9854 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-24 01:36:23 +00:00
ryan
0339e5cd7a Revert [9773]. htmlspecialchars_decode() requires PHP 5.1. see #6992
git-svn-id: http://svn.automattic.com/wordpress/trunk@9825 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-21 00:57:31 +00:00
markjaquith
a9d7f40d2e Add a "parent" class to comment LIs with children. props filosofo. fixes #8091
git-svn-id: http://svn.automattic.com/wordpress/trunk@9812 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-20 13:36:44 +00:00
markjaquith
30c3602b92 Improvements for get_comment_link() from Viper007Bond. fixes #8287
git-svn-id: http://svn.automattic.com/wordpress/trunk@9808 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-20 06:41:55 +00:00
markjaquith
93bc9521cd Handle blank display_name for commenters. props mrmist. fixes #7494
git-svn-id: http://svn.automattic.com/wordpress/trunk@9781 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-19 06:58:44 +00:00
markjaquith
cad8e31e39 Show pending comments to users with quotes in their name. props regulatethis. fixes #6992
git-svn-id: http://svn.automattic.com/wordpress/trunk@9773 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-19 04:58:10 +00:00
markjaquith
e3c5f05f3c A couple more hCard CSS classes for comments from wnorris. fixes #8264
git-svn-id: http://svn.automattic.com/wordpress/trunk@9764 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-18 22:06:51 +00:00
ryan
83dce74554 wp_list_comments() fixes when passing type. Props Viper007Bond. fixes #8168
git-svn-id: http://svn.automattic.com/wordpress/trunk@9667 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-13 20:36:36 +00:00
ryan
7effb8df55 Fix notice
git-svn-id: http://svn.automattic.com/wordpress/trunk@9540 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-06 01:58:33 +00:00
markjaquith
88bfbbd948 Massive get_comment_link() performance improvements for posts with a lot of comments. props Viper007Bond. fixes #7956
git-svn-id: http://svn.automattic.com/wordpress/trunk@9522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-05 07:09:20 +00:00
markjaquith
698b1f1e4a Improvements to the Edit Comment screen
git-svn-id: http://svn.automattic.com/wordpress/trunk@9436 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-31 18:05:25 +00:00
ryan
5024fd6632 ['depth'] during the wp_list_comments should be ['max_depth']. Props ShaneF. fixes #8018
git-svn-id: http://svn.automattic.com/wordpress/trunk@9424 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-31 02:58:22 +00:00
ryan
a5f00be14a Respect respond_id. props filosofo. fixes #8011
git-svn-id: http://svn.automattic.com/wordpress/trunk@9416 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-30 15:56:39 +00:00
ryan
25f4e26d33 Wrong view ryan
git-svn-id: http://svn.automattic.com/wordpress/trunk@9406 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-29 22:56:48 +00:00
westi
545c95e14b Make all comments classy. Fixes #8006 props filosofo.
git-svn-id: http://svn.automattic.com/wordpress/trunk@9405 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-29 22:25:06 +00:00
ryan
6a3dd73a72 Obey comment_order if set. Defaul to asc if not set
git-svn-id: http://svn.automattic.com/wordpress/trunk@9386 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-28 16:41:47 +00:00
ryan
7f456fd864 Threaded comment fixes from filosofo. fixes #7980
git-svn-id: http://svn.automattic.com/wordpress/trunk@9385 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-28 16:17:48 +00:00
ryan
53220e2a0e Make get_comment_link() paging aware. Props Viper007Bond. see #7956
git-svn-id: http://svn.automattic.com/wordpress/trunk@9367 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-27 16:31:26 +00:00
markjaquith
de26116d76 Fix comment paging for when $comments is passed in. props Viper007Bond. see #7927
git-svn-id: http://svn.automattic.com/wordpress/trunk@9317 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-24 07:27:19 +00:00
ryan
91841f2e3c Comment paging and sorting from Viper007Bond. see #7927
git-svn-id: http://svn.automattic.com/wordpress/trunk@9296 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-23 16:08:47 +00:00
ryan
372a721fe0 Pass args from Walker to comment_reply_link(). Props Otto42. fixes #7901
git-svn-id: http://svn.automattic.com/wordpress/trunk@9209 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-16 20:22:53 +00:00
ryan
a5937fc33a Add avatar_size arg. Props Otto42. see #7635
git-svn-id: http://svn.automattic.com/wordpress/trunk@9207 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-16 20:05:34 +00:00
ryan
461b32e12c comment_id_fields(). see #7635
git-svn-id: http://svn.automattic.com/wordpress/trunk@9175 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-14 19:06:18 +00:00
azaozz
9ce8d0f70e Use no-js reply on error in comment-reply.js, see #7635
git-svn-id: http://svn.automattic.com/wordpress/trunk@9114 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-09 20:27:39 +00:00
azaozz
c506412ad6 No jQuery requirement for comment-reply.js, see #7635
git-svn-id: http://svn.automattic.com/wordpress/trunk@9113 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-09 11:11:56 +00:00
azaozz
2bd7d9960d No-JS mode for replying to comments and some improvements/cleanup of comment-reply.js, includes patch by Viper007Bond, see #7635
git-svn-id: http://svn.automattic.com/wordpress/trunk@9112 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-09 07:37:05 +00:00
ryan
a09cff5399 before and after for comment_reply_link(). see #7635
git-svn-id: http://svn.automattic.com/wordpress/trunk@9093 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-07 18:03:43 +00:00
ryan
69f373ec0c Add arg to comments_template() for requesting separating comments by type. see #7635
git-svn-id: http://svn.automattic.com/wordpress/trunk@9092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-06 23:16:26 +00:00
ryan
eef17ba0a5 Hide reply link by default. Enable with JS. Props Viper007Bond. see #7635
git-svn-id: http://svn.automattic.com/wordpress/trunk@9037 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-09-30 17:27:15 +00:00
ryan
369317d2a7 phpdoc for comments-template from jacobsantos. see #7550
git-svn-id: http://svn.automattic.com/wordpress/trunk@8970 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-09-24 20:02:41 +00:00
ryan
ea3363cd24 Fix comment display when paging is off. see #7769
git-svn-id: http://svn.automattic.com/wordpress/trunk@8964 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-09-24 05:20:17 +00:00