Commit Graph

225 Commits

Author SHA1 Message Date
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