Commit Graph

342 Commits

Author SHA1 Message Date
scribu
e05be05ad8 remove_accents(): Nordic characters fixes. Props einare. Fixes #4739. See #9591
git-svn-id: https://develop.svn.wordpress.org/trunk@15930 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-23 13:00:21 +00:00
scribu
ed9a39abab Introduce sanitize_title_for_query(). See #9591
git-svn-id: https://develop.svn.wordpress.org/trunk@15929 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-23 12:55:55 +00:00
Ryan Boren
d66fa94a75 Improve regex performance in wptexturize(). Props mdawaffe. fixes #15093
git-svn-id: https://develop.svn.wordpress.org/trunk@15816 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-15 14:34:38 +00:00
Ryan Boren
df6d5550db Simplify sanitize_key() and use it in more places. see #14910
git-svn-id: https://develop.svn.wordpress.org/trunk@15635 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-20 15:28:58 +00:00
Andrew Nacin
9494e4ce7e Phpdoc argument/@param cleanups. props duck_, see #14783.
git-svn-id: https://develop.svn.wordpress.org/trunk@15590 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 11:21:11 +00:00
Ryan Boren
a17a25fcef Make smilies links SSL aware. Props tech163. fixes #14360
git-svn-id: https://develop.svn.wordpress.org/trunk@15554 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-31 18:26:18 +00:00
Mark Jaquith
ae2f607f53 Leonard Lin was kind enough to relicense his balanceTags() function as "GPL (any version)" instead of "GPL v2.0." http://github.com/lhl/balanceTags/blob/master/README
git-svn-id: https://develop.svn.wordpress.org/trunk@15536 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-26 15:43:32 +00:00
Mark Jaquith
15b414837c More judicious Wordpress-to-WordPress correction, to avoid bungling reasonable URLs. fixes #13971
git-svn-id: https://develop.svn.wordpress.org/trunk@15377 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-08 19:35:29 +00:00
Dion Hulse
7efc4efdaa Alot more tabs. Props jacobsantos & Viper007bond. See #14147
git-svn-id: https://develop.svn.wordpress.org/trunk@15355 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-30 00:05:18 +00:00
Andrew Nacin
e45ec0a52c Fix warnings related to static pages. props zeo for initial patch. fixes #13830.
git-svn-id: https://develop.svn.wordpress.org/trunk@15227 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-11 17:04:06 +00:00
Andrew Nacin
592434afb5 Forever eliminate 'Wordpress' from the planet (or at least the little bit we can influence). props matt.
git-svn-id: https://develop.svn.wordpress.org/trunk@14996 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 16:11:27 +00:00
Peter Westwood
82a44c5a3b Attempt to make stripslashes_deep object safe. See #12860
git-svn-id: https://develop.svn.wordpress.org/trunk@14766 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-20 21:16:44 +00:00
Peter Westwood
dacd1c5623 Improve cross DST future post publishing behaviour to try and publish at the correct time if we have PHP5 timezone support available to help. Fixes #9285 props technosailor.
git-svn-id: https://develop.svn.wordpress.org/trunk@14487 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-06 20:40:29 +00:00
Ryan Boren
56e95f24c5 Fix user validation feedback. Props sivel. fixes #13162
git-svn-id: https://develop.svn.wordpress.org/trunk@14428 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 23:46:42 +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
Ryan Boren
d783952469 Strip trailing whites.
git-svn-id: https://develop.svn.wordpress.org/trunk@14404 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 20:26:11 +00:00
Andrew Nacin
9eabb51000 Deprecate checkdnsrr from is_email. Unused in core, and wonky on some server setups (Mac OS X < PHP 5.3 specifically). A plugin can always add it back. props technosailor, fixes #12503.
git-svn-id: https://develop.svn.wordpress.org/trunk@14381 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 18:54:37 +00:00
Dion Hulse
b4051fba69 Add basic email/url validation to General options page. Prevents users entering a invalid Admin email or WordPress/Site Address which is not in URL form. Props technosailor for initial patch, slightly reworked. See #12868
git-svn-id: https://develop.svn.wordpress.org/trunk@14231 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-25 08:16:10 +00:00
Dion Hulse
929ff9692b Make (\d)x(\d) texturization less greedy, requires a word boundary either side of the phrase. See #12118
git-svn-id: https://develop.svn.wordpress.org/trunk@14144 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 08:26:38 +00:00
Peter Westwood
08d47899a5 Improve behaviour of wptexturize with respect to single quotes. See #4539 props jmstacey.
git-svn-id: https://develop.svn.wordpress.org/trunk@14095 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-15 21:39:58 +00:00
Dion Hulse
491063c698 Tweak new strings for better typography. Props demetris. Fixes #12962
git-svn-id: https://develop.svn.wordpress.org/trunk@14070 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-11 10:41:54 +00:00
Andrew Nacin
f81c0fdc39 Deprecate funky_javascript_fix() and it's callback. fixes #12520.
git-svn-id: https://develop.svn.wordpress.org/trunk@13988 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-04 07:11:23 +00:00
Andrew Nacin
c7fa61e102 Cast subject of _deep_replace() to string to prevent an infinite loop. props mdawaffe, fixes #12386
git-svn-id: https://develop.svn.wordpress.org/trunk@13983 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-04 03:07:14 +00:00
Andrew Nacin
b25edaacc5 Add block-level HTML5 elements to wpautop(). props rmccue. fixes #12335
git-svn-id: https://develop.svn.wordpress.org/trunk@13982 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-04 01:14:22 +00:00
Dion Hulse
c57a54f082 A better default except, Remove multiple white spaces from the except as well as splitting safely on UTF8 strings. Props Denis-de-Bernardy for the UTF8 split. Fixes #10376
git-svn-id: https://develop.svn.wordpress.org/trunk@13942 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-02 07:10:51 +00:00
Dion Hulse
90dd44e0c2 Whitespace and coding standards cleanup for balanceTags(). See #11968
git-svn-id: https://develop.svn.wordpress.org/trunk@13914 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-01 13:18:34 +00:00
Dion Hulse
6edd892710 Recognise namespaces in tags for balanceTags(). Fixes #11968
git-svn-id: https://develop.svn.wordpress.org/trunk@13913 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-01 13:16:44 +00:00
Dion Hulse
f653d1710a Dont pee on <option>. Prevents the addition of a <br/> following a </option>. Props akerem. Fixes #11947
git-svn-id: https://develop.svn.wordpress.org/trunk@13903 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-31 09:32:44 +00:00
Andrew Nacin
d43df7123a Change @since 2.9 to @since 2.9.0.
git-svn-id: https://develop.svn.wordpress.org/trunk@13829 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-26 19:23:39 +00:00
Ryan Boren
e61755c853 Trim trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@13733 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-17 16:27:25 +00:00
Mark Jaquith
8bca8131a6 More pedantry. "Setup" is not a verb. http://notaverb.com/setup
git-svn-id: https://develop.svn.wordpress.org/trunk@13725 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-17 04:39:50 +00:00
Ryan Boren
35236d8291 Introduce sanitize_key().
git-svn-id: https://develop.svn.wordpress.org/trunk@13718 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-16 19:19:32 +00:00
Ryan Boren
9b019acfbe make *_option(), *_transient() functions consistently expect unslashed data. Props Denis-de-Bernardy. see #12416
git-svn-id: https://develop.svn.wordpress.org/trunk@13673 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 21:49:56 +00:00
Andrew Nacin
a7a3e94381 Add some whitespace to get_body_class(). props coffee2code. Clarify fallback parameter in sanitize_html_class(). see #11331
git-svn-id: https://develop.svn.wordpress.org/trunk@13468 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-27 20:06:35 +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
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
Andrew Nacin
6c154d97c9 Deprecate clean_url() for esc_url(). Fixes #12309
git-svn-id: https://develop.svn.wordpress.org/trunk@13299 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-22 18:25:51 +00:00
Dion Hulse
4011b3d4a8 Remove unused references to global $wpdb
git-svn-id: https://develop.svn.wordpress.org/trunk@13240 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-20 00:50:29 +00:00
Ryan Boren
15f2f0bda1 add_settings_error fixes. Props jeremyclarke. fixes #11474
git-svn-id: https://develop.svn.wordpress.org/trunk@13197 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-18 19:43:44 +00:00
Ryan Boren
0ac0e76299 Option validation error reporting. Props jeremyclarke. see #11474
git-svn-id: https://develop.svn.wordpress.org/trunk@13177 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-17 17:50:42 +00:00
Andrew Nacin
91bfbda120 Fix typos in inline docs for clean_url() and esc_url().
git-svn-id: https://develop.svn.wordpress.org/trunk@13108 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 10:58:01 +00:00
Andrew Nacin
0470fb90ea Deprecate old l10n and sanitization APIs. Deprecate __ngettext() for _n(), __ngettext_noop() for _n_noop(), translate_with_context() for _x(). Deprecate sanitize_url for esc_url_raw, js_escape for esc_js, wp_specialchars for esc_html, attribute_escape for esc_attr. See #11388
git-svn-id: https://develop.svn.wordpress.org/trunk@13096 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 07:28:19 +00:00
Dion Hulse
d5ced26371 Initialise Variables, Whitespace cleanup, Remove unused variables, Cast start_of_week option to int in sanitization.
git-svn-id: https://develop.svn.wordpress.org/trunk@13089 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 06:08:15 +00:00
Andrew Nacin
e280df1945 Fix inline documentation for esc_js(). Intended for inline JS only, fixes #11690.
git-svn-id: https://develop.svn.wordpress.org/trunk@13076 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 02:54:54 +00:00
Peter Westwood
ec9016aaca Revert [12460] for now while we consider a better fix. See #10041
git-svn-id: https://develop.svn.wordpress.org/trunk@12957 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-04 21:40:02 +00:00
Peter Westwood
ac72e501ea Fix typo in phpdoc for sanitize_text_field. Fixes #12091 props joshtime.
git-svn-id: https://develop.svn.wordpress.org/trunk@12912 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-31 15:41:19 +00:00
Ryan Boren
2e46e81309 i18n fixes. Props nbachiyski. fixes #11954
git-svn-id: https://develop.svn.wordpress.org/trunk@12789 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-21 21:37:43 +00:00
Ryan Boren
8ef8b7bad5 Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@12733 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-15 22:11:12 +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
Peter Westwood
7d9a46e01c Only run a second spaces strip if we replaced some octets. Also only replace spaces and we have already removed the other whitespace chars. Fixes #11573 props azaozz.
git-svn-id: https://develop.svn.wordpress.org/trunk@12504 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 11:00:29 +00:00
Peter Westwood
e0f06bd939 Improve sanitize_text_field() some more so that we don't leave extra whitespace after stripping octets. Fixes #11573.
git-svn-id: https://develop.svn.wordpress.org/trunk@12503 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 09:52:48 +00:00
Andrew Ozz
a01ed1f445 Fix sanitize_text_field() issue with some UTF-8 characters, fixes #11528 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@12499 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 09:10:26 +00:00
Peter Westwood
3081afd1e1 Improve like_escape to also escape '\'. Fixes #10041 props miau_jp and Denis-de-Bernardy.
git-svn-id: https://develop.svn.wordpress.org/trunk@12460 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-19 11:07:16 +00:00
Ryan Boren
3b656ce72e Make the excerpt_more filter include the space. Props demetris. fixes #11456
git-svn-id: https://develop.svn.wordpress.org/trunk@12414 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-16 16:38:58 +00:00
Matt Mullenweg
2101888ec0 Cast out the lowercase P demons that snuck in. http://www.google.com/search?q=out+out+you+demons+of+stupidity
git-svn-id: https://develop.svn.wordpress.org/trunk@12341 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-08 19:59:34 +00:00
Andrew Ozz
3ee2175000 Separate the removal of <p> wrapping from shortcodes into another function and apply it with different filter, props miqrogroove, props mdawaffe, see #11257, see #11249
git-svn-id: https://develop.svn.wordpress.org/trunk@12302 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-01 07:46:36 +00:00
Andrew Ozz
8a77135845 Autop: add fieldset to blocks, remove support for empty <p> for now, fix block in block problems when switching the editor from visual to html and back, fixes #8644
git-svn-id: https://develop.svn.wordpress.org/trunk@12275 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-25 09:50:20 +00:00
Peter Westwood
69422cfa9c Ensure that make_clickable links correctly when the link is placed in brackets and has trailing punctuation. Fixes #11211 props filosofo.
git-svn-id: https://develop.svn.wordpress.org/trunk@12250 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-21 09:14:17 +00:00
Ryan Boren
07c605407e Sanitize filenames with multiple extensions. see #11122
git-svn-id: https://develop.svn.wordpress.org/trunk@12165 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-11 23:07:29 +00:00
Peter Westwood
a4fddc2825 Ensure that trailing ) in urls are included in the link when it looks appropriate. Fixes #10990 props filosofo.
git-svn-id: https://develop.svn.wordpress.org/trunk@12088 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-22 18:46:27 +00:00
Peter Westwood
1026700f47 Improve wptexturize performance. Fixes #10987 props johanee.
git-svn-id: https://develop.svn.wordpress.org/trunk@12084 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-21 21:57:27 +00:00
Ryan Boren
1b7c69990e Strip nulls
git-svn-id: https://develop.svn.wordpress.org/trunk@12072 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-20 18:52:37 +00:00
Ryan Boren
05458bb414 Use oEmbed for youtube. Props Viper007Bond. see #10337
git-svn-id: https://develop.svn.wordpress.org/trunk@12027 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-13 22:36:24 +00:00
Ryan Boren
e71f15a979 Embeds. Props Viper007Bond. see #10337
git-svn-id: https://develop.svn.wordpress.org/trunk@12023 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-13 17:04:22 +00:00
Mark Jaquith
737378702c esc_sql() for wp-includes
git-svn-id: https://develop.svn.wordpress.org/trunk@11978 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-27 05:33:56 +00:00
Andrew Ozz
8a4019bb28 Strip \r when escaping strings for JS, props nbachiyski, fixes #7041
git-svn-id: https://develop.svn.wordpress.org/trunk@11935 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-15 10:11:59 +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
Ryan Boren
b7f82a38b5 Filter fields through kses upon display. Introduce sanitize_user_object() and sanitize_user_field(). see #10751
git-svn-id: https://develop.svn.wordpress.org/trunk@11929 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-14 13:57:48 +00:00
Peter Westwood
925df4bd49 Give plugins and themes simple control over the text displayed at the end of an autogenerated excerpt. Fixes #10395 props ramiy.
git-svn-id: https://develop.svn.wordpress.org/trunk@11907 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-09 16:34:44 +00:00
Peter Westwood
eaf2709b64 Treat comma, colon and semi-colon the same way.
git-svn-id: https://develop.svn.wordpress.org/trunk@11848 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-20 07:58:41 +00:00
Peter Westwood
6ef85440d4 Ensure that drafts viewed over XMLRPC have a correct gmt date set. Fixes #10244 for trunk props josephscott.
git-svn-id: https://develop.svn.wordpress.org/trunk@11846 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-20 06:59:02 +00:00
Andrew Ozz
212f2ce180 Better regex for [11844]
git-svn-id: https://develop.svn.wordpress.org/trunk@11845 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-20 00:19:00 +00:00
Andrew Ozz
46e1de4878 Removed trailing .) from the URL in make_clickable()
git-svn-id: https://develop.svn.wordpress.org/trunk@11844 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-19 23:56:10 +00:00
Peter Westwood
ddbdf401d4 Fix wptexturisation of quotes when enclosed by brackets. Fixes #1418 props voyou1.
git-svn-id: https://develop.svn.wordpress.org/trunk@11813 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-14 16:43:22 +00:00
Peter Westwood
c37c59c0b7 Ensure that users_can_register is sanitised correctly. See #10454 props josephscott.
git-svn-id: https://develop.svn.wordpress.org/trunk@11772 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-04 21:28:42 +00:00
Ryan Boren
62cdbc6522 add smilies_src filter. Props Otto42. see #10145
git-svn-id: https://develop.svn.wordpress.org/trunk@11738 602fd350-edb4-49c9-b593-d223f7449a82
2009-07-22 18:27:13 +00:00
Ryan Boren
f2baa0626d Pass delimiter to preg_quote(). Props Denis-de-Bernardy. see #9955
git-svn-id: https://develop.svn.wordpress.org/trunk@11634 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-23 22:10:46 +00:00
Peter Westwood
e5dd9ecd88 Introduce _deep_replace() and use it to improve the stripping of percent encoded values from urls. Fixes #10226 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@11615 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-20 17:42:24 +00:00
Ryan Boren
95df8d05fd Don't pass by reference. Props kamiyeye. fixes #9994
git-svn-id: https://develop.svn.wordpress.org/trunk@11518 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-04 05:32:58 +00:00
Andrew Ozz
cc4f66f13f Allow translators to change the curly quotes in wptexturize(), props nbachiyski fixes #10001
git-svn-id: https://develop.svn.wordpress.org/trunk@11504 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-02 00:27:53 +00:00
Mark Jaquith
d5c981b0ea Add esc_sql(), for completeness.
git-svn-id: https://develop.svn.wordpress.org/trunk@11490 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-29 20:31:52 +00:00
Ryan Boren
e12c642c54 Trim tailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@11450 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-24 23:47:49 +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
Ryan Boren
848507ccff seems_utf8() cleanup. Props hakre. fixes #9692
git-svn-id: https://develop.svn.wordpress.org/trunk@11414 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-20 21:13:14 +00:00
Ryan Boren
9d6af24e2b Fix item count in wp_sprintf_l(). Props abelcheung. fixes #9847
git-svn-id: https://develop.svn.wordpress.org/trunk@11394 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-19 15:36:01 +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
18cc4463fe Handle nested tag in wptexturize(). Props nbachiyski. fixes #7056 see #6969
git-svn-id: https://develop.svn.wordpress.org/trunk@11345 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-15 21:37:18 +00:00
Peter Westwood
eef75a9675 Ensure that wp_specialchars captures all pre-encoded entities correctly when preventing double encoding. Fixes #9821.
git-svn-id: https://develop.svn.wordpress.org/trunk@11338 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-15 06:29:19 +00:00
Mark Jaquith
aeb9272a1c Exclude <tt> from formatting. props JulienV. fixes #8321
git-svn-id: https://develop.svn.wordpress.org/trunk@11313 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-12 22:51:24 +00:00
Mark Jaquith
8d6cb67233 esc_js(). Shorter, follows new escaping naming convention.
git-svn-id: https://develop.svn.wordpress.org/trunk@11245 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-09 07:27:22 +00:00
Ryan Boren
9d41d07f40 Escape title attributes in calendar links. fixes #8967
git-svn-id: https://develop.svn.wordpress.org/trunk@11215 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-06 04:56:32 +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
d2d104d968 sanitize_file_name() improvements. Props sivel. fixes #9416
git-svn-id: https://develop.svn.wordpress.org/trunk@11178 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-04 20:20:48 +00:00
Ryan Boren
494d54de30 Don't prepend http to fragments. Props scohoust. fixes #4051
git-svn-id: https://develop.svn.wordpress.org/trunk@11126 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-29 20:10:06 +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
036a7656f9 attr(), _a(), _ea(), _xa() for shorthand attribute escaping. see #9650
git-svn-id: https://develop.svn.wordpress.org/trunk@11103 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-27 21:58:04 +00:00
Ryan Boren
89afda412e Eliminate preg_replace with /e. Props tbaboon. fixes #8689
git-svn-id: https://develop.svn.wordpress.org/trunk@11098 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-27 16:17:24 +00:00
Andrew Ozz
ac40df7d99 Add <col> to list of block elements, props CharlieHamu and Denis-de-Bernardy, fixes #9484
git-svn-id: https://develop.svn.wordpress.org/trunk@11070 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-23 08:28:22 +00:00
Andrew Ozz
27cf3f2991 Don't output <br /> for empty posts, props Denis-de-Bernardy, fixes #6128
git-svn-id: https://develop.svn.wordpress.org/trunk@11048 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-22 07:37:24 +00:00
Ryan Boren
4dc60fe8bb Allow pipes through clean_url(). Props scohoust. fixes #7145
git-svn-id: https://develop.svn.wordpress.org/trunk@11023 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-20 22:02:17 +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
77a64d69a5 make_clickable() regex fixes. Props piouPiouM. fixes #9390
git-svn-id: https://develop.svn.wordpress.org/trunk@10989 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-17 16:51:53 +00:00
Ryan Boren
91edad4f95 Add wp_trim_excerpt filter. Props coffee2code. fixes #9558
git-svn-id: https://develop.svn.wordpress.org/trunk@10981 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-17 06:59:33 +00:00
Mark Jaquith
b190328260 Dots in post slugs should be dashed, not dropped. props Denis-de-Bernardy. fixes #9489
git-svn-id: https://develop.svn.wordpress.org/trunk@10977 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-17 03:28:55 +00:00
Andrew Ozz
bf48851d29 Spaced hyphens into spaced dashes, props ionfish, fixes #8161
git-svn-id: https://develop.svn.wordpress.org/trunk@10973 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-17 01:38:52 +00:00
Ryan Boren
6f6ef8709a Pass the unprocessed title to the sanitize_title filter. Props chineseleper. fixes #8981 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10804 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-17 17:42:54 +00:00
Andrew Ozz
a23fda87b3 Fix regex in sanitize_email(), props sambauers, see #9316
git-svn-id: https://develop.svn.wordpress.org/trunk@10783 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-14 01:35:47 +00:00
Andrew Ozz
297703490b Fix regex function in sanitize_email(), see #9316
git-svn-id: https://develop.svn.wordpress.org/trunk@10777 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-13 19:04:39 +00:00
Ryan Boren
89c67a8b40 Improved is_email() and sanitize_email(). Props sambauers. fixes #9316 #4616
git-svn-id: https://develop.svn.wordpress.org/trunk@10769 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-11 15:26:34 +00:00
Ryan Boren
1952e923f8 gettext contexts. Props nbachiyski. see #9112
git-svn-id: https://develop.svn.wordpress.org/trunk@10767 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-10 23:02:29 +00:00
Ryan Boren
8e9edf3e5a Use mb_substr instead of mb_strcut in wp_html_excerpt. Props demetris. fixes #9055
git-svn-id: https://develop.svn.wordpress.org/trunk@10702 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-04 19:41:18 +00:00
Ryan Boren
854a8d6341 Use _n(). Props nbachiyski. fixes #9111
git-svn-id: https://develop.svn.wordpress.org/trunk@10606 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-20 19:35:16 +00:00
Ryan Boren
d27d34793d Handle links with parens in make_clickable(). Props filosofo. fixes #8300
git-svn-id: https://develop.svn.wordpress.org/trunk@10562 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-12 19:52:43 +00:00
Andrew Ozz
2ffb3663e4 Reduce backtracking in autop, fixes #6877, see #8553
git-svn-id: https://develop.svn.wordpress.org/trunk@10527 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-08 16:08:02 +00:00
Andrew Ozz
aa574da3db Fix PHP notice in force_balance_tags(), props beaulebens, fixes #9067
git-svn-id: https://develop.svn.wordpress.org/trunk@10523 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-08 04:16:58 +00:00
Ryan Boren
560eacbb44 Add missing preg delimiters. Props ridgerunner. fixes #8986 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10459 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-29 17:46:31 +00:00
Ryan Boren
c46a012328 Silence charset not supported warnings
git-svn-id: https://develop.svn.wordpress.org/trunk@10398 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-21 20:28:51 +00:00
Andrew Ozz
2a684445e6 Fix incorrect quote style in wp_specialchars, props sambauers, see #8767
git-svn-id: https://develop.svn.wordpress.org/trunk@10376 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-19 04:40:12 +00:00
Peter Westwood
733b554431 Update phpdoc for get_gmt_from_date(). Fixes #8869 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10370 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-17 10:20:49 +00:00
Andrew Ozz
926adb5bcb Speed up wp_specialchars, props sambauers, see #8767
git-svn-id: https://develop.svn.wordpress.org/trunk@10355 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-13 15:18:37 +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
34ba806985 Faster smilies. Props johanee. fixes #6464
git-svn-id: https://develop.svn.wordpress.org/trunk@10322 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-06 18:20:47 +00:00
Andrew Ozz
1d0781a8c8 Latest version of the patch for refactor filters to avoid potential XSS attacks, props sambauers and DD32, see #8767
git-svn-id: https://develop.svn.wordpress.org/trunk@10298 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-04 23:37:47 +00:00
Andrew Ozz
ec804d2905 Refactor filters to avoid potential XSS attacks, props sambauers and DD32, see #8767
git-svn-id: https://develop.svn.wordpress.org/trunk@10297 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-04 22:25:50 +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
Mark Jaquith
82a39b97be Cast image sizes to ints. Explain that sizes are in pixels. fixes #8160
git-svn-id: https://develop.svn.wordpress.org/trunk@9661 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-13 07:54:27 +00:00
Ryan Boren
06c6a7d153 Introduce normalize_whitespace(). Use it instead of wp_text_diff() when checking for identical autosave revisions. Props tellyworth. fixes #7691
git-svn-id: https://develop.svn.wordpress.org/trunk@9302 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-23 20:03:16 +00:00
Ryan Boren
44c170459e Reduce backtracking in wpautop. fixes #6877
git-svn-id: https://develop.svn.wordpress.org/trunk@9255 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-20 19:25:02 +00:00
Peter Westwood
19bc50ea03 Notice fix and don't count inside a loop. Fixes #7653 props ryan.
git-svn-id: https://develop.svn.wordpress.org/trunk@9189 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-15 20:47:56 +00:00
Matt Mullenweg
b2c2d93ed4 clean_url improvements, Hat tip: markjaquith. Reviewed by nbachiyskip. Fixes #7386.
git-svn-id: https://develop.svn.wordpress.org/trunk@9179 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-14 22:58:30 +00:00
Ryan Boren
c2a331c502 Convert undefined constants to strings. Props jacobsantos. fixes #7651
git-svn-id: https://develop.svn.wordpress.org/trunk@9137 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-13 22:14:52 +00:00
Ryan Boren
23fd52bd85 First cut of comment paging. Add paging and threading settings. see #7769 #7635
git-svn-id: https://develop.svn.wordpress.org/trunk@8961 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-23 21:11:27 +00:00
Peter Westwood
e2b66fe7dc Add a filter on $excerpt_length. Fixes #7778 props dougal.
git-svn-id: https://develop.svn.wordpress.org/trunk@8958 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-22 21:21:05 +00:00
Peter Westwood
33228d225d phpDoc updates for formatting functions fixes #5638 props jacobsantos.
git-svn-id: https://develop.svn.wordpress.org/trunk@8786 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-31 20:58:19 +00:00
Peter Westwood
8d72a6d8b7 phpDoc updates for formatting functions fixes #5638 props jacobsantos.
git-svn-id: https://develop.svn.wordpress.org/trunk@8783 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-30 21:28:11 +00:00
Peter Westwood
eab05b3379 phpDoc updates for formatting functions. See #5638 props scohoust and santosj.
git-svn-id: https://develop.svn.wordpress.org/trunk@8743 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-27 06:49:21 +00:00
Ryan Boren
519072ea9f Consolidate contiguous whitespace in usernames
git-svn-id: https://develop.svn.wordpress.org/trunk@8704 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-21 22:58:29 +00:00
Peter Westwood
0d0bb6aad8 phpdoc for formatting functions. See #5638 props scohoust.
git-svn-id: https://develop.svn.wordpress.org/trunk@8662 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-17 11:29:43 +00:00
Ryan Boren
2272a1a950 Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@8600 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-09 05:36:14 +00:00
Peter Westwood
010f5ed7b2 Lots of fixes for Notices when WP_DEBUG is set. See #6669 props santosj.
git-svn-id: https://develop.svn.wordpress.org/trunk@8589 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-08 17:05:10 +00:00
Peter Westwood
0d522c3898 Plugin Install GSOC project first code drop. Props DD32 see #6015.
git-svn-id: https://develop.svn.wordpress.org/trunk@8540 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-04 21:01:09 +00:00
Ryan Boren
5e982913b6 Allow IRIs. Props guillep2k. fixes #4570
git-svn-id: https://develop.svn.wordpress.org/trunk@8525 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-02 17:32:25 +00:00
Ryan Boren
6b75258ab7 Hands off pre tags. Props nbachiyski. fixes #7056
git-svn-id: https://develop.svn.wordpress.org/trunk@8298 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-09 04:52:27 +00:00
Ryan Boren
304340a9b0 Fix quotes in captions. Props azaozz. see #6812
git-svn-id: https://develop.svn.wordpress.org/trunk@8290 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-08 23:38:53 +00:00
Ryan Boren
6866ceae15 Encode < and > in wp_richedit_pre. Props azaozz. fixes #6449
git-svn-id: https://develop.svn.wordpress.org/trunk@8073 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-12 21:38:34 +00:00
Ryan Boren
daef9ff12d Strip shortcodes when making excerpts. Props hailin. fixes #7100
git-svn-id: https://develop.svn.wordpress.org/trunk@8054 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-05 20:11:38 +00:00
Mark Jaquith
1c68bb873d Don't wpautop()-wrap shortcodes that stand alone. fixes #6444 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7815 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-25 00:45:31 +00:00