Changeset 653017
- Timestamp:
- 01/15/2013 03:07:53 PM (13 years ago)
- Location:
- pinterest-rss-widget/trunk
- Files:
-
- 2 edited
-
pinterest-rss-widget.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pinterest-rss-widget/trunk/pinterest-rss-widget.php
r588945 r653017 5 5 Description: 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> 6 6 Author: bkmacdaddy designs 7 Version: 2. 017 Version: 2.1 8 8 Author URI: http://bkmacdaddy.com/ 9 9 … … 60 60 $rss = fetch_feed($pinsfeed); 61 61 $rss->set_timeout(60); 62 62 63 63 // Figure out how many total items there are. 64 64 $maxitems = $rss->get_item_quantity((int)$maxfeeds); … … 80 80 $thumb = $thumb[0]['attribs']['']['url']; 81 81 $content .= '<img src="'.$thumb.'"'; 82 $content .= ' alt="'.$item->get_title().'"/>';83 } else if ( $useenclosures == 'yes' && $enclosure = $item->get_enclosure() ) {84 $enclosure = $item->get_enclosures();85 $content .= '<img src="'.$enclosure[0]->get_link().'"';86 82 $content .= ' alt="'.$item->get_title().'"/>'; 87 83 } else { -
pinterest-rss-widget/trunk/readme.txt
r588945 r653017 4 4 Tags: Pinterest, rss, feed, widget 5 5 Requires at least: 2.8.4 6 Tested up to: 3. 3.16 Tested up to: 3.5 7 7 Stable tag: trunk 8 8 … … 70 70 == Changelog == 71 71 72 = 2.2 = 73 * Fixed code to work with latest version of WordPress (3.5) 74 72 75 = 2.01 = 73 76 * Added timeout for RSS feed retrieval to avoid Call to undefined method WP_Error::get_item_quantity()
Note: See TracChangeset
for help on using the changeset viewer.