WordPress Lead Developer Mark Jaquith wrote a great write-up on launching his new site, which included a great little mu-plugins drop-in that allows you to lock specific plugins ‘on’.
Easy way to check if jQuery is already enqueued
Had a plugin wreaking some havoc today because it was overloading jquery.js with a minified, older version. Plugin authors: There’s a really simple way to check if jQuery or a jQuery library is already registered and enqueued. This covers really obscure edge cases where a plugin may have de-registered WordPress’s default scripts.
The offending code:
wp_register_script('myjquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js', true, '1.6.4', false); wp_enqueue_script('myjquery');
The fix:
// If jQuery isn't already enqueued, register and enqueue it if ( ! jQuery ) { wp_register_script('myjquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js', true, '1.7.2', false); wp_enqueue_script('myjquery'); }
Gmail has apparently retired several Labs features…
Gmail has apparently retired several Labs features including my favorite (and most used), Mouse Gestures. In a recent post on the Gmail blog, other retired Labs features include Old Snakey, Mail Goggles, Hiding Unread Counts, Custom Date Formats and some others. Bummer and a half!