Plugin Directory

Changeset 588945


Ignore:
Timestamp:
08/22/2012 06:16:09 PM (14 years ago)
Author:
bkmacdaddy
Message:

Update to Version 2.01

Location:
pinterest-rss-widget/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pinterest-rss-widget/trunk/pinterest-rss-widget.php

    r531937 r588945  
    55Description: Display up to 25 of your latest Pinterest Pins in your sidebar. You are welcome to express your gratitude for this plugin by donating via <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SXTEL7YLUSFFC" target="_blank"><strong>PayPal</strong></a>
    66Author: bkmacdaddy designs
    7 Version: 2.0
     7Version: 2.01
    88Author URI: http://bkmacdaddy.com/
    99
     
    4848
    4949function get_pins_feed_list($username, $boardname, $maxfeeds=25, $divname='standard', $printtext=NULL, $target='samewindow', $useenclosures='yes', $thumbwidth='150', $thumbheight='150', $showfollow='large') {
    50 
    51                 // This is the main function of the plugin. It is used by the widget and can also be called from anywhere in your theme. See the readme file for example.
     50// This is the main function of the plugin. It is used by the widget and can also be called from anywhere in your theme. See the readme file for example.
    5251
    5352        // Get Pinterest Feed(s)
     
    6059                // Get a SimplePie feed object from the Pinterest feed source
    6160                $rss = fetch_feed($pinsfeed);
    62 
    63                 // Figure out how many total items there are.
    64                 $maxitems = $rss->get_item_quantity((int)$maxfeeds);
     61                $rss->set_timeout(60);
     62
     63                // Figure out how many total items there are.               
     64                $maxitems = $rss->get_item_quantity((int)$maxfeeds);
    6565
    6666                // Build an array of all the items, starting with element 0 (first element).
     
    7878                                   
    7979                                    if ($thumb = $item->get_item_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'thumbnail') ) {
    80                                         $thumb = $thumb[0]['attribs']['']['url'];
     80                                        $thumb = $thumb[0]['attribs']['']['url'];                                           
    8181                                        $content .= '<img src="'.$thumb.'"';
    8282                                        $content .= ' alt="'.$item->get_title().'"/>';
  • pinterest-rss-widget/trunk/readme.txt

    r531937 r588945  
    7070== Changelog ==
    7171
     72= 2.01 =
     73* Added timeout for RSS feed retrieval to avoid Call to undefined method WP_Error::get_item_quantity()
     74
    7275= 2.0 =
    7376* Removed timthumb.php and replaced jQuery NailThumb for image resizing
Note: See TracChangeset for help on using the changeset viewer.