[wp-trac] [WordPress Trac] #3670: Removing CDATA close tag ( ]]> ) unbalances the CDATA block

WordPress Trac noreply at wordpress.org
Fri Dec 12 19:24:26 UTC 2014


#3670: Removing CDATA close tag ( ]]> ) unbalances the CDATA block
-------------------------------------------------+-------------------------
 Reporter:  scenic                               |       Owner:  andy
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  Posts, Post Types                    |  Release
 Severity:  minor                                |     Version:  2.1
 Keywords:  has-patch needs-refresh needs-unit-  |  Resolution:
  tests                                          |     Focuses:  template
-------------------------------------------------+-------------------------

Comment (by truebird):

 Hey @awelzel

 I did try it (in its original form) and was getting no change. I thought
 my installation may have had a slight variety. Hence, the question.

 I will try it again and let you know what happens . . . again thanks for
 your contribution.

 :)

 Replying to [comment:74 awelzel]:
 > Replying to [comment:73 truebird]:
 > > @awelzel
 > >
 > > If this would work it would be awesome. Thanks so much for posting it.
 Mine is slightly different:
 > > $content = str_replace( ']]>', ']]>', $content );
 >
 > This is not only "slightly different" - it's in fact the opposite way
 and exactly the same, what WordPress already does.
 >
 > > Would I just have to change that line in your code to make it work (or
 anything else as well)? Also, I am on a multisite if that makes a
 difference (and the site in question is a subsite of course). Any
 adjustment for a multisite (or the same)?
 >
 > I have to admit: I don't get it. To get it right: Your code already
 does, what WordPress does. You ask me, if changing my code I proposed to
 your code, that would "make it work"? Why?
 >
 > In short: Just use my code as it is and try it out on your own. I don't
 know what other modifications you already have done in your themes and
 which plugins you use.
 >
 > > I have a child theme as well (I believe that is ok as well)...any
 adjustments in that regard?
 >
 > Nope. As I understand child themes, all functions from the main theme
 are still active, but you can also add additional stiff in the child
 theme.

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


More information about the wp-trac mailing list