WordPress.org

Ready to get started?Download WordPress

Forums

Live Comment Preview
bug in version 2.0b1 (4 posts)

  1. monodistortion
    Member
    Posted 3 years ago #

    Here's one bug in Live Comment Preview version 2.0b1.

    I was just looking at the code and on line 149 it says:

    var allowedtags=['<?= implode("', '", array_keys($allowedtags)) ?>'];
    

    Short open tags will not work on any server with that PHP option turned off.
    http://codex.wordpress.org/WordPress_Coding_Standards#No_Shorthand_PHP_tags

  2. Brad Touesnard
    Member
    Plugin Author

    Posted 3 years ago #

    Fixed and committed to trunk.

  3. monodistortion
    Member
    Posted 3 years ago #

    I looked at the trunk, dated 2011-01-17, and you have to be careful with the short tags. <?= is shorthand for <?php echo.

  4. Brad Touesnard
    Member
    Plugin Author

    Posted 3 years ago #

    Good catch, didn't quite fix it after all. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic