Opened 10 years ago
Closed 10 years ago
#33273 closed defect (bug) (invalid)
#33106 bug - i still get this with 4.2.4?
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 4.2.4 |
| Component: | Editor | Keywords: | |
| Focuses: | Cc: |
Description
This is a follow-up to #33106.
Hi - I had this issue on a clients site and with the release of 4.2.4 the site still has it:
// ]]> </script>
Changes to
// ]]></script>
and therefore the closing script tag is commented out.
WP adds in the CDATA tags with the / / comments and removes any newlines in the code so the comment, closing CDATA tag and the script tag are all put on the same line.
This only happens when changing the WYSIWYG editor from "Text" to "Visual" mode - the Visual mode "tidies" the code and creates the issue.
I thought this was fixed in 4.2.4 or is this a different issue from what was fixed in #33106?
Change History (2)
Note: See
TracTickets for help on using
tickets.
Hi stuartezonewp, don't think scripts work this way. The
</script>tag is part of the HTML. To comment it out you will need to use<!--and-->. The//comments out the JavaScript that is inside the<script></script>tag.This is added by TinyMCE and has always been formatted like that.