Commit Graph

60 Commits

Author SHA1 Message Date
Ryan Boren 48120ed74b Add clean_url filter. see #4570
git-svn-id: https://develop.svn.wordpress.org/trunk@5952 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-27 23:31:09 +00:00
Peter Westwood 1532e450bb Enable plugins to override the cockney replace array, fixes #4804 props andihit
git-svn-id: https://develop.svn.wordpress.org/trunk@5930 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-23 21:02:31 +00:00
Ryan Boren c10c02374b Sanitize a few options
git-svn-id: https://develop.svn.wordpress.org/trunk@5914 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-22 17:57:36 +00:00
Ryan Boren 1c5c2aee5c Make balanceTags() option independent. Props mdawaffe. fixes #4626
git-svn-id: https://develop.svn.wordpress.org/trunk@5805 602fd350-edb4-49c9-b593-d223f7449a82
2007-07-16 19:23:41 +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 d907ae8841 js_escape improvements from Alexander Concha. Catches &#39 &#039 ' ' ' ' &#x000027 etc.
git-svn-id: https://develop.svn.wordpress.org/trunk@5734 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-19 22:46:55 +00:00
Ryan Boren 6b7bc3b1b6 wp_parse_str() from mdawaffe. see #4467
git-svn-id: https://develop.svn.wordpress.org/trunk@5709 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-14 22:46:59 +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 d6bf26da3c Fix nestable HTML, including <blockquote>'s. Props anonymousbugger (!) and Nazgul. fixes #1170
git-svn-id: https://develop.svn.wordpress.org/trunk@5623 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-01 02:33:03 +00:00
Ryan Boren c018ceb6bd Make sure sanitize_option() is always called when updating options.
git-svn-id: https://develop.svn.wordpress.org/trunk@5541 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-25 02:22:30 +00:00
rob1n 2e5f0e8bde Don't treat object and param as block elements in wpautop. fixes #3854
git-svn-id: https://develop.svn.wordpress.org/trunk@5262 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-12 23:19:16 +00:00
rob1n eac89c8fdd Get add_query_arg() to urlencode all values of parse_str array. Props mdawaffe. fixes #4084
git-svn-id: https://develop.svn.wordpress.org/trunk@5261 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-12 22:00:22 +00:00
Matt Mullenweg 4c1d1977b7 Missing change from last commit.
git-svn-id: https://develop.svn.wordpress.org/trunk@5227 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-10 07:39:47 +00:00
rob1n f2216ff99f Don't autop <script> blocks. Props Nazgul. fixes #3854
git-svn-id: https://develop.svn.wordpress.org/trunk@5223 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-10 00:49:18 +00:00
rob1n 537e017277 Don't autop <hr />. fixes #3952
git-svn-id: https://develop.svn.wordpress.org/trunk@5222 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-10 00:47:08 +00:00
Ryan Boren 152256ca63 Fix relative link mangling in clean_url. fixes #4017 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@5095 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-23 23:31:44 +00:00
Ryan Boren df22b0ccc9 Don't prepend protocol to relative links. fixes #4017 #4001 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@5088 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-23 01:45:24 +00:00
Ryan Boren b3727f5cb0 Don't add http:// to relative links. Props donncha. fixes #4001
git-svn-id: https://develop.svn.wordpress.org/trunk@5065 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-21 00:29:40 +00:00
Mark Jaquith 9331f3efea Improvements to untrailingslashit() and trailingslashit(). props Jamie Talbot. fixes #3899
git-svn-id: https://develop.svn.wordpress.org/trunk@5021 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-10 08:32:57 +00:00
Mark Jaquith e643142a5e new function: untrailingslashit(). fixes #3899
git-svn-id: https://develop.svn.wordpress.org/trunk@5020 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-10 06:25:33 +00:00
Mark Jaquith 56368548ad Use strpos instead of strstr where ever possible, for speed. Props rob1n. fixes #3920
git-svn-id: https://develop.svn.wordpress.org/trunk@4990 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-07 05:29:15 +00:00
Mark Jaquith 5acfcd9fea trailing tabs and whitespace cleanup.
git-svn-id: https://develop.svn.wordpress.org/trunk@4953 602fd350-edb4-49c9-b593-d223f7449a82
2007-02-27 15:24:54 +00:00
Ryan Boren 18548bb54a Don't br image maps. Props rob1n. fixes #1292
git-svn-id: https://develop.svn.wordpress.org/trunk@4900 602fd350-edb4-49c9-b593-d223f7449a82
2007-02-21 01:50:27 +00:00
Ryan Boren bd5e9d3b08 Don't insert p inside of div. fixes #3669
git-svn-id: https://develop.svn.wordpress.org/trunk@4894 602fd350-edb4-49c9-b593-d223f7449a82
2007-02-20 05:41:39 +00:00
Ryan Boren c9f49bbbb9 sanitize_file_name(). fixes #3382 #3554
git-svn-id: https://develop.svn.wordpress.org/trunk@4710 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-09 22:53:14 +00:00
Ryan Boren c34c29d935 Add kses protocol checking to clean_url. Props Andy. fixes #3515
git-svn-id: https://develop.svn.wordpress.org/trunk@4672 602fd350-edb4-49c9-b593-d223f7449a82
2007-01-02 21:22:41 +00:00
Mark Jaquith e576c9a998 __ngettext() correction by nbachiyski. fixes #3508
git-svn-id: https://develop.svn.wordpress.org/trunk@4669 602fd350-edb4-49c9-b593-d223f7449a82
2006-12-31 06:11:24 +00:00
Mark Jaquith d57cc26c58 Remove unused is_comment param in balanceTags() relates to #2714
git-svn-id: https://develop.svn.wordpress.org/trunk@4662 602fd350-edb4-49c9-b593-d223f7449a82
2006-12-23 06:14:34 +00:00
Ryan Boren 0ca0aee18e Add js_escape and attribute_escape filters.
git-svn-id: https://develop.svn.wordpress.org/trunk@4660 602fd350-edb4-49c9-b593-d223f7449a82
2006-12-22 05:26:43 +00:00
Mark Jaquith f95b191dab i18n fixes, logic cleanup, wording clarifications, and more from nbachiyski. fixes #3474
git-svn-id: https://develop.svn.wordpress.org/trunk@4658 602fd350-edb4-49c9-b593-d223f7449a82
2006-12-21 23:06:18 +00:00
Mark Jaquith a011b23b47 Whitespace cleanup for [4656]
git-svn-id: https://develop.svn.wordpress.org/trunk@4657 602fd350-edb4-49c9-b593-d223f7449a82
2006-12-21 10:45:58 +00:00
Mark Jaquith 31c39f948d new function for escaping within attributes: attribute_escape()
git-svn-id: https://develop.svn.wordpress.org/trunk@4656 602fd350-edb4-49c9-b593-d223f7449a82
2006-12-21 10:10:04 +00:00
Matt Mullenweg 546425227b MSN Spaces seems to like exclamation points in their URLs, they must be pandering to Yahoo! ;)
git-svn-id: https://develop.svn.wordpress.org/trunk@4593 602fd350-edb4-49c9-b593-d223f7449a82
2006-12-03 21:55:42 +00:00
Matt Mullenweg 1e969aed95 Don't texturize things inside of script or style tags, fixes #2647
git-svn-id: https://develop.svn.wordpress.org/trunk@4565 602fd350-edb4-49c9-b593-d223f7449a82
2006-12-01 02:53:20 +00:00
Matt Mullenweg f9138f65e7 Small cleanup to autop, fixes #3238
git-svn-id: https://develop.svn.wordpress.org/trunk@4562 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-30 23:32:45 +00:00
Ryan Boren c539a41672 Truncate sanitized titles to the size of the post_name field without killing multibye characters.
git-svn-id: https://develop.svn.wordpress.org/trunk@4560 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-30 20:26:42 +00:00
Ryan Boren 798f6dd0d2 Spare input, param, and script from autop. fixes #3054
git-svn-id: https://develop.svn.wordpress.org/trunk@4553 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-30 02:00:40 +00:00
Ryan Boren 56cda89bdf Make wptexturize faster. Props ecb29. fixes #2980
git-svn-id: https://develop.svn.wordpress.org/trunk@4511 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-21 22:00:10 +00:00
Ryan Boren e44ea1ff93 Remove trailing spaces and convert spaces to tabs. Props Nazgul. fixes #986
git-svn-id: https://develop.svn.wordpress.org/trunk@4495 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-19 07:56:05 +00:00
Ryan Boren 08b0eb170b Fix amp handling. Props skeltoac. fixes #3328
git-svn-id: https://develop.svn.wordpress.org/trunk@4451 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-08 01:12:41 +00:00
Mark Jaquith 97b1fde162 fix function name error in last two commits. fixes #3228
git-svn-id: https://develop.svn.wordpress.org/trunk@4387 602fd350-edb4-49c9-b593-d223f7449a82
2006-10-13 06:08:27 +00:00
Mark Jaquith 8f786af426 make_clickable() now faster and supports more link positions, from mdawaffe and myself. fixes #3228
git-svn-id: https://develop.svn.wordpress.org/trunk@4386 602fd350-edb4-49c9-b593-d223f7449a82
2006-10-13 06:01:33 +00:00
Mark Jaquith 4bce27562b Somewhat stricter smilies replacements by Nazgul. fixes #3222
git-svn-id: https://develop.svn.wordpress.org/trunk@4380 602fd350-edb4-49c9-b593-d223f7449a82
2006-10-12 10:14:14 +00:00
Ryan Boren 28a0e3786c Smilies optimization from Nazgul. fixes #3201 #3216
git-svn-id: https://develop.svn.wordpress.org/trunk@4360 602fd350-edb4-49c9-b593-d223f7449a82
2006-10-07 19:16:24 +00:00
Ryan Boren 0f54dd0d75 Relativize links. Props mdawaffe. fixes #3211
git-svn-id: https://develop.svn.wordpress.org/trunk@4353 602fd350-edb4-49c9-b593-d223f7449a82
2006-10-06 22:43:21 +00:00
Ryan Boren 0627d3a23a Relativize links. Props mdawaffe.
git-svn-id: https://develop.svn.wordpress.org/trunk@4348 602fd350-edb4-49c9-b593-d223f7449a82
2006-10-06 00:34:58 +00:00
Mark Jaquith b2cf5d4a93 Strip out British pound sterling (pound) symbol from post slug. fixes #2735
git-svn-id: https://develop.svn.wordpress.org/trunk@4320 602fd350-edb4-49c9-b593-d223f7449a82
2006-10-04 07:51:11 +00:00
Mark Jaquith c37652968a Allow user replacement of cockney replacement array. fixes #1032
git-svn-id: https://develop.svn.wordpress.org/trunk@4308 602fd350-edb4-49c9-b593-d223f7449a82
2006-10-04 06:07:48 +00:00
Ryan Boren 076dd45bcf Smiley parsing fixes from Nazgul. fixes #2444 #1279
git-svn-id: https://develop.svn.wordpress.org/trunk@4283 602fd350-edb4-49c9-b593-d223f7449a82
2006-10-04 02:21:27 +00:00
Ryan Boren 0022e717d8 Show more link in RSS. Don't show more link if more link text empty. Take more into account when creating excerpt.
git-svn-id: https://develop.svn.wordpress.org/trunk@4184 602fd350-edb4-49c9-b593-d223f7449a82
2006-09-11 23:59:00 +00:00