[wp-trac] [WordPress Trac] #38000: Visual mode editor is broken after update to 4.6.1
WordPress Trac
noreply at wordpress.org
Fri Sep 9 17:28:27 UTC 2016
#38000: Visual mode editor is broken after update to 4.6.1
--------------------------+-----------------------------------------
Reporter: arnolem | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.6.2
Component: Editor | Version: 4.6.1
Severity: normal | Resolution:
Keywords: has-patch | Focuses: javascript, administration
--------------------------+-----------------------------------------
Comment (by azaozz):
Replying to [comment:3 arnolem]:
> I have a simple PHP function to minify all HTML elements in function.php
I'm afraid this preg_replace() is not "up for the job". As mentioned in
the comments at the link you posted, it will potentially break anything in
a `<script>`, `<pre>` and `<textarea>` tags. There are probably better
"HTML white space removers" you could use.
Of course we will fix the comment style in this inline JS, but you will
probably run into more problems in the future.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38000#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list