Learning Center

Issues Fetching calendar times from iCloud via CalDAV

Using the ‘root’ server caldav.icloud.com will fetch calendar entries for a particular user, but the results will not always be complete. No errors are raised at all yet the results weren’t correct. After a bit of experimentation it turns out using caldav.icloud.com instead of the user’s “actual” server (p02-caldav.icloud.com in my case) causes random calendar… Read more »

Removing the author from a WordPress feed

One client didn’t want the author’s e-mail address directly visible, and though it was removed from the theme it still appeared in the feed. Fortunately there’s a filter for that: function my_remove_author_from_feed( $author ) { if ( is_feed() ) { $author = ”; } return $author; } add_filter(‘the_author’, ‘my_remove_author_from_feed’);

How to access a FileValut 2 encrypted drive using Lion Recovery

After upgrading from 10.7.1 to 10.7.2 with the hard drive encrypted with FileVault 2, the system would not boot (displayed a circle with a line through it). After searching I found a thread that seemed to point to PGP still having some parts left around, even though I wasn’t using PGP Whole Disk Encryption (WDE)… Read more »

WordPress Plugin Repository not updating

When pushing a recent update to the Weever Apps plugin, the version number did not seem to be updating. Most documentation mentions updating the readme.txt file, but not the main plugin file version number also. Without updating both the new version will appear in the dropdown and as ‘development version,’ but not as the main… Read more »

WordPress AJAX response codes using status_header

I’m constantly searching around for the cleanest and most “WordPress way” to do things vs. re-inventing the wheel.  One function that helps write cleaner AJAX call handlers is status_header(), to inform the caller when things go wrong: add_action( ‘wp_ajax_myajaxaction’, ‘my_ajax_handler’ ); function my_ajax_handler() { if ( ! empty($_POST) and check_ajax_referer( ‘mynonce’, ‘nonce’ ) ) {… Read more »