Jetpack 2.0.1 was released last night, immediately followed by 2.0.2, which fixed a fatal error on some hosts, caused by a short PHP open tag. So here’s a reminder: never use the short form of the PHP opening tag:
<? _doing_it_wrong(); ?>
Always use the long form:
<?php _doing_it_right(); ?>
grep can do Perl regular expressions, you can search your entire codebase with a negative lookahead like this:
grep --include=*.php -rP '<\?(?!php|xml)' *
Joseph Scott has a simpler example that works without the
-P flag. If you’re building WordPress themes, the Theme Check plugin will scan your theme for short tags automatically. Plugin Check will do the same thing for your plugins.