Support

Account

Home Forums General Issues Question about updates coming in 6.2.7 Reply To: Question about updates coming in 6.2.7

  • Hi John,

    Thanks for your reply. Just to be sure I understand, if the developer did this:

    <?php if (get_sub_field('right_heading')) : ?> <h2><?php the_sub_field('right_heading'); ?></h2> <?php endif; ?>

    then 6.2.7 will properly escape the H2 element? However if the developer did this:

    <?php if (get_sub_field('right_heading')) : ?> <h2><?php echo get_sub_field('right_heading'); ?></h2> <?php endif; ?>

    then it will not escape the H2 element. Is that correct?