Friday Photos Version 1.1

Friday Photos Version 1.1 corrects two issues and implements a new feature. First to support weekly scheduling the implementation of WP Pseudo Cron required a “weekly” interval value that isn’t part of the default cron_schedule filter. To add this interval value the implementation of a filter function, as explained in the article Timing is everything: scheduling in WordPress, was needed. The code is shown here:

function more_reccurences() {
return array(
'weekly' => array('interval' => 604800, 'display' => 'Once Weekly'),
'fortnightly' => array('interval' => 1209600, 'display' => 'Once Fortnightly'),
);
}
add_filter('cron_schedules', 'more_reccurences');

Secondly the “Author” field wasn’t being set properly and required a small change to pass the field from the form to the database. Additionally Friday Photos now supports the ability to pull in the picture’s description from Flickr. This is handled through a new checkbox titled “Include Flickr Description” on the “Friday Photos” admin screen. You can download the new version of Friday Photos here.

Tags: , , , ,

Leave a Reply