Okay
  Public Ticket #1108462
Code output displayed incorrectly
Closed

Comments

  •  1
    ghostpool started the conversation

    Hi there,

    Recently PHP tags added to the Code format box are displayed incorrectly. Any <? and ?> tags are displayed like this:

    <!--?php get_template_part( 'lib/sections/hub-details' ); ?-->
    

    Instead of this:

    <?php get_template_part( 'lib/sections/hub-details' ); ?>
    

    I have to manually edit each tag which can take a long time for a long piece of code.

  • [deleted] replied

    Thanks for letting me know. I've submitted a bug report to the editor developers (Redactor). Hopefully they will fix this within the next update. Sorry about the inconvenience!

  • [deleted] replied

    This should be working now!

    <?php get_template_part( 'lib/sections/hub-details' ); ?>
    
  •  1
    ghostpool replied

    Thanks! :)

  •  1
    ghostpool replied

    It still has issues unforutnately e.g.

    <?php if ( has_post_thumbnail() &&
    

    Becomes with:

    <?php if ( has_post_thumbnail() &&-->
    
  • [deleted] replied

    Okay, I'll pass this bug report along again. Thanks!