PHP short tags not always cooperative
-
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 theshort_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 ?? https://cl.ly/NkGs (or this one that also cleans up a bunch of whitespace https://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.
- The topic ‘PHP short tags not always cooperative’ is closed to new replies.