Andrew Nacin
d8c91db1f4
Remove more create_function calls. props huichen, see #14424 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16313 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-11 22:50:36 +00:00
Ryan Boren
8d9d4817a3
Add equal sign to blacklist. Props Pádraic Brady. for 3.1
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15383 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-12 14:30:39 +00:00
Ryan Boren
c6f385ea6a
Don't use deprecated function. Blacklist curlies.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15356 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-30 17:46:37 +00:00
Mark Jaquith
fb6501cae0
Add some new protocols for KSES. Make the list of protocols filterable. Start esc_url() with the same list. fixes #10914 . props technosailor
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14412 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 21:20:20 +00:00
Andrew Nacin
b974013f7c
Add HTML 5 elements to kses, first pass. props rmccue. see #12835 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14406 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 20:34:49 +00:00
Andrew Nacin
dd306def81
Remove redundant isset() and empty() checks.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13770 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-19 21:29:21 +00:00
Ryan Boren
f8a2a5ca31
Fix numeric entity logic in kses. Props miqrogroove. see #12284
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13648 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-10 18:45:28 +00:00
Peter Westwood
64dce47ade
Improve kses handling of attributes in valid XHTML self closed img tags. Fixes #12394 props dougal.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13561 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-02 22:11:08 +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
e6b37271cd
Coil the kses entities whitelist. See #12284
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13363 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-24 07:33:14 +00:00
Ryan Boren
096ea9990a
Whitelist entities. Props miqrogroove. see #12284
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13358 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-24 05:37:20 +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
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