Support » Plugin: wpMandrill » PHP short tags not always cooperative

  • Resolved Kailey (trepmal)

    (@trepmal)


    Volunteer Mod & Reviewer

    Hoping to persuade you to remove the PHP short tags in favor of of the long-hand/full/standard/whatever syntax.

    Basically, <?=$var?> doesn’t play nice everywhere. While my understanding is that PHP 5.4 will support it regardless of the short_open_tag setting, WordPress itself only requires 5.2.4, so many users may not be running 5.4 yet. It’s also discouraged by WordPress coding standards.

    I’ve created a diff against the current version of the plugin to help 🙂 http://cl.ly/NkGs (or this one that also cleans up a bunch of whitespace http://cl.ly/Njaw)

    Oh, and I also through an isset() check in there so I’d stop getting a “headers already sent error” when debug is on.

    Or if diffs aren’t your thing, here’s a zip.

    http://wordpress.org/extend/plugins/wpmandrill/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP short tags not always cooperative’ is closed to new replies.