[wp-trac] Re: [WordPress Trac] #7691: autosave newer version check
can be slow enough to cause edit tab to time out
WordPress Trac
wp-trac at lists.automattic.com
Thu Sep 18 07:57:28 GMT 2008
#7691: autosave newer version check can be slow enough to cause edit tab to time
out
------------------------+---------------------------------------------------
Reporter: tellyworth | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.7
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch |
------------------------+---------------------------------------------------
Comment (by azaozz):
Perhaps we can call normalize_whitespace() dif_normalize_whitespace() as
if it's run on the content before autop, it would break most P tags. Or
maybe better to normalize it properly, something like
{{{
$str = preg_replace('/(\r?\n|\r)/', '\n', $str);
}}}
would leave 2 "\n" where needed (this is only needed for the HTML editor,
TinyMCE handles it internally). Also may need to replace some other
whitespace chars like U+00a0, U+202f, etc. (some browsers when set in
certain encodings can insert these when in designMode/contentEditable).
--
Ticket URL: <http://trac.wordpress.org/ticket/7691#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list