Commit Graph

69 Commits

Author SHA1 Message Date
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
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
Ryan Boren 56989f4f5c Allow 0xAD in URI attributes. Props nbachiyski. fixes #9823 #10859
git-svn-id: https://develop.svn.wordpress.org/trunk@12199 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-17 20:18:48 +00:00
Ryan Boren 486efbd69f Introduce wp_kses_post() and wp_kses_data() for filtering unescaped data. Fixes slashing of displayed fields. fixes #10949
git-svn-id: https://develop.svn.wordpress.org/trunk@12125 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-29 17:15:58 +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 5d667146b8 Do not use lambda functions in wp_kses_decode_entities(), props mdawaffe, fixes #10623
git-svn-id: https://develop.svn.wordpress.org/trunk@11828 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-16 05:58:39 +00:00
Andrew Ozz 43770b1234 Fix deprecated arg. in safecss_filter_attr(), for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@11699 602fd350-edb4-49c9-b593-d223f7449a82
2009-07-08 09:54:34 +00:00
Ryan Boren 7af7514cf0 Allow class, id, and style on headers. Props matt.
git-svn-id: https://develop.svn.wordpress.org/trunk@11692 602fd350-edb4-49c9-b593-d223f7449a82
2009-07-06 14:37:48 +00:00
Andrew Ozz 81c8791b9d Inline CSS filter for kses, for trunk, fixes #10336
git-svn-id: https://develop.svn.wordpress.org/trunk@11689 602fd350-edb4-49c9-b593-d223f7449a82
2009-07-04 04:49:39 +00:00
Ryan Boren 7f510a5bfb Revert accidental fxn rename
git-svn-id: https://develop.svn.wordpress.org/trunk@11212 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-05 23:32:16 +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 2baa2f8e58 Use preg_replace_callback instead of preg_replace with eval. Props beaulebens. see #8689
git-svn-id: https://develop.svn.wordpress.org/trunk@10339 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-09 19:29:35 +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 9618b0260a phpDoc corrections for KSES. Fixes #7550 props jacobsantos.
git-svn-id: https://develop.svn.wordpress.org/trunk@8837 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-06 06:53:45 +00:00
Ryan Boren 35657e8988 Apply kses bad-protocol checks only to URI typed attributes. Props takayukister. fixes #5917 #6888 #6910 #7512
git-svn-id: https://develop.svn.wordpress.org/trunk@8671 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-19 18:43:21 +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
Peter Westwood a619cbba87 Mark kses callbacks as private. Fixes #7363.
git-svn-id: https://develop.svn.wordpress.org/trunk@8410 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-23 08:36:15 +00:00
Andrew Ozz e5655cff31 kses - don't use create_function in preg_replace_callback. Fixes #7363.
git-svn-id: https://develop.svn.wordpress.org/trunk@8387 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-21 05:11:00 +00:00
Andrew Ozz 11bac00854 kses - properly escape non-Unicode entities. Fixes #6583. Props schiller.
git-svn-id: https://develop.svn.wordpress.org/trunk@8386 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-21 03:21:09 +00:00
Andrew Ozz a9868e9fd5 Take first attribute and ignore later duplicate attributes. Fixes #6602 for trunk. Props schiller.
git-svn-id: https://develop.svn.wordpress.org/trunk@8384 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-21 01:12:49 +00:00
Andrew Ozz 124ca7ff00 Prevent adjacent hyphens in a HTML/XML comment. Fixes #6642 for trunk. Props schiller.
git-svn-id: https://develop.svn.wordpress.org/trunk@8382 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-21 00:32:43 +00:00
Ryan Boren 2a31d10af7 Allow lang and xml:lang for span. Props MtDewVirus. fixes #7003
git-svn-id: https://develop.svn.wordpress.org/trunk@7969 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-20 23:56:28 +00:00
Ryan Boren e3bb240c81 Better protocol check from Łukasz Pilorz.
git-svn-id: https://develop.svn.wordpress.org/trunk@7370 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-18 01:53:36 +00:00
Peter Westwood fff82c1684 Update the allowed attributes for html list elements. Fixes #6253 props andy and lloydbudd.
git-svn-id: https://develop.svn.wordpress.org/trunk@7337 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-16 22:16:27 +00:00
Ryan Boren 04ff7f125c Use preg_replace_callback instead of 'e' modifier. see #5644
git-svn-id: https://develop.svn.wordpress.org/trunk@7107 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-29 18:28:32 +00:00
Ryan Boren 0298b896eb Use preg_replace_callback instead of 'e' modifier. see #5644
git-svn-id: https://develop.svn.wordpress.org/trunk@7106 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-29 17:49:50 +00:00
Ryan Boren 29ae6c24c8 phpdoc for kses from darkdragon. fixes #5641
git-svn-id: https://develop.svn.wordpress.org/trunk@6630 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-16 19:15:07 +00:00
Ryan Boren 3864eec220 Allow more tags in kses. Props lloydbudd. fixes #5617
git-svn-id: https://develop.svn.wordpress.org/trunk@6617 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-14 23:56:53 +00:00
Ryan Boren 7a43c01e08 Remove trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@6026 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-03 23:32:58 +00:00
Mark Jaquith 13d390e40f Pass extra args to pre_kses hook. Props mdawaffe. see #4409
git-svn-id: https://develop.svn.wordpress.org/trunk@5787 602fd350-edb4-49c9-b593-d223f7449a82
2007-07-06 22:47:24 +00:00
Mark Jaquith 258e179448 Entitize lone less-than characters. Props mdawaffe. fixes #4409
git-svn-id: https://develop.svn.wordpress.org/trunk@5783 602fd350-edb4-49c9-b593-d223f7449a82
2007-07-06 12:53:15 +00:00
Ryan Boren b046d67f41 Trim empty lines. Nothing but newline.
git-svn-id: https://develop.svn.wordpress.org/trunk@5700 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-14 02:25:30 +00:00
rob1n 7929eca3cc Don't take out class attribute for <abbr />, for hReview. fixes #3420
git-svn-id: https://develop.svn.wordpress.org/trunk@5383 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-04 03:52:11 +00:00
rob1n d03a237b24 Add lang and xml:lang attributes to allowed list for p, div and blockquote. fixes #4128
git-svn-id: https://develop.svn.wordpress.org/trunk@5375 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-02 04:31:30 +00:00
rob1n ae87af4ce8 Spring cleaning, extreme edition.
git-svn-id: https://develop.svn.wordpress.org/trunk@5374 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-02 04:26:57 +00:00
rob1n 00c7a213a0 Clean that mess up so it's more easily managed.
git-svn-id: https://develop.svn.wordpress.org/trunk@5373 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-02 04:17:43 +00:00
Mark Jaquith 3357b71e0e Reverse backport (?) from 2.0.x of KSES filters
git-svn-id: https://develop.svn.wordpress.org/trunk@4654 602fd350-edb4-49c9-b593-d223f7449a82
2006-12-21 04:44:34 +00:00
Ryan Boren 01cfb71b45 Update allowed protocols. fixes #2726
git-svn-id: https://develop.svn.wordpress.org/trunk@4550 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-30 01:50:48 +00:00
Ryan Boren 5a2e0d5e60 Filter post_content_filtered
git-svn-id: https://develop.svn.wordpress.org/trunk@4533 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-25 17:54:41 +00:00
Ryan Boren 9e0c4a5155 Bump kses to 0.2.2. Props westi. fixes #2661
git-svn-id: https://develop.svn.wordpress.org/trunk@3989 602fd350-edb4-49c9-b593-d223f7449a82
2006-07-05 22:40:05 +00:00
Ryan Boren f7ee176581 More comment cookie sanitation.
git-svn-id: https://develop.svn.wordpress.org/trunk@3577 602fd350-edb4-49c9-b593-d223f7449a82
2006-02-28 09:49:06 +00:00
Ryan Boren e0feeb161a Strip all html from comment author name, email, and url.
git-svn-id: https://develop.svn.wordpress.org/trunk@3574 602fd350-edb4-49c9-b593-d223f7449a82
2006-02-28 04:22:24 +00:00
Ryan Boren cd4a8a24c5 current user cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@3566 602fd350-edb4-49c9-b593-d223f7449a82
2006-02-22 19:08:55 +00:00
Ryan Boren ba8e3e8d47 Make the xmlrpc user the current user. fixes #2273
git-svn-id: https://develop.svn.wordpress.org/trunk@3430 602fd350-edb4-49c9-b593-d223f7449a82
2006-01-13 19:19:09 +00:00
Ryan Boren 835a8b9992 kses regex tweakage for better comment filtering. fixes #2130
git-svn-id: https://develop.svn.wordpress.org/trunk@3429 602fd350-edb4-49c9-b593-d223f7449a82
2006-01-13 07:28:47 +00:00
Ryan Boren 3974041405 Rerun comment text back through kses.
git-svn-id: https://develop.svn.wordpress.org/trunk@3418 602fd350-edb4-49c9-b593-d223f7449a82
2006-01-10 01:27:36 +00:00
Ryan Boren 06532a3304 Pass comments through kses. Props tsimmons. fixes #2130 #2167
git-svn-id: https://develop.svn.wordpress.org/trunk@3417 602fd350-edb4-49c9-b593-d223f7449a82
2006-01-09 23:49:56 +00:00
Ryan Boren 6ffbef60a5 Filter title with kses. fixes #1788
git-svn-id: https://develop.svn.wordpress.org/trunk@2963 602fd350-edb4-49c9-b593-d223f7449a82
2005-10-25 14:46:23 +00:00
Ryan Boren 565ff7ca40 Add ordered list tags to kses. fixes #1761
git-svn-id: https://develop.svn.wordpress.org/trunk@2950 602fd350-edb4-49c9-b593-d223f7449a82
2005-10-14 18:52:44 +00:00
Ryan Boren 4bb9a136f6 Add kses_init_filters(). Call it when running importers.
git-svn-id: https://develop.svn.wordpress.org/trunk@2934 602fd350-edb4-49c9-b593-d223f7449a82
2005-10-05 23:58:16 +00:00