[resolved] PHP short tags not always cooperative (3 posts)

  1. 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.


  2. MC_Will
    Plugin Author

    Posted 3 years ago #

    Thanks for keeping an eye on this!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • wpMandrill
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic