[wp-trac] [WordPress Trac] #37132: tinymce uses php open tag which can crash visual editor when server is set to parse JS files for PHP

WordPress Trac noreply at wordpress.org
Wed Jun 22 09:12:04 UTC 2016


#37132: tinymce uses php open tag which can crash visual editor when server is set
to parse JS files for PHP
-------------------------------+----------------------
 Reporter:  oldbucsfan         |       Owner:
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:
Component:  TinyMCE            |     Version:  4.5.2
 Severity:  normal             |  Resolution:  wontfix
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+----------------------
Changes (by azaozz):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 Agree with @johnbillion that this shouldn't be done. Also as @swissspidy
 mentions above the `<?` comes from upstream and depends on the JS
 minifier. There is little we can do about it.

 The WordPress way of doing something like that is to output an object with
 the private information then use that in the "standard" script, the same
 way translated strings work.

 Closing as wontfix, feel free to reopen with some examples if there is an
 edge case that cannot be handled in any other way.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37132#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list