Plugin Directory

Changeset 700792


Ignore:
Timestamp:
04/20/2013 03:33:28 PM (13 years ago)
Author:
Bit51
Message:

Version 5.4.1

Location:
multi-site-site-list-shortcode
Files:
24 added
3 edited

Legend:

Unmodified
Added
Removed
  • multi-site-site-list-shortcode/trunk/lib/bit51/bit51.php

    r642688 r700792  
    1111    abstract class Bit51 {
    1212   
    13         var $feed = 'http://feeds.feedburner.com/Bit51'; //current address of Bit51.com feed
     13        var $feed = 'http://bit51.com/feed'; //current address of Bit51.com feed
    1414   
    1515        /**
     
    350350           
    351351            $feed = fetch_feed( $this->feed ); //get the feed
    352            
    353             $feeditems = $feed->get_items( 0, $feed->get_item_quantity( 5 ) ); //narrow feed to last 5 items
    354            
    355             $content = '<ul>'; //start list
    356            
    357             if ( ! $feeditems ) {
    358            
    359                 $content .= '<li class="bit51">' . __( 'No news items, feed might be broken...', $this->hook ) . '</li>';
     352
     353            if ( ! isset( $feed->errors ) ) {
     354
     355                $feeditems = $feed->get_items( 0, $feed->get_item_quantity( 5 ) ); //narrow feed to last 5 items
     356           
     357                $content = '<ul>'; //start list
     358           
     359                if ( ! $feeditems ) {
     360           
     361                    $content .= '<li class="bit51">' . __( 'No news items, feed might be broken...', $this->hook ) . '</li>';
    360362               
     363                } else {
     364           
     365                    foreach ( $feeditems as $item ) {
     366                       
     367                        $url = preg_replace( '/#.*/', '', esc_url( $item->get_permalink(), $protocolls = null, 'display' ) );
     368                       
     369                        $content .= '<li class="bit51"><a class="rsswidget" href="' . $url . '" target="_blank">'. esc_html( $item->get_title() ) .'</a></li>';
     370                       
     371                    }
     372                   
     373                }   
     374                                   
     375                $content .= '</ul>'; //end list
     376
    361377            } else {
    362            
    363                 foreach ( $feeditems as $item ) {
    364                    
    365                     $url = preg_replace( '/#.*/', '', esc_url( $item->get_permalink(), $protocolls = null, 'display' ) );
    366                    
    367                     $content .= '<li class="bit51"><a class="rsswidget" href="' . $url . '" target="_blank">'. esc_html( $item->get_title() ) .'</a></li>';
    368                    
    369                 }
    370                
    371             }   
    372                                
    373             $content .= '</ul>'; //end list
     378                $content = __( 'It appears as if the feed is currently down. Please try again later', $this->hook );
     379            }
    374380           
    375381            $this->postbox( 'bit51posts' , __( 'The Latest from Bit51', $this->hook ), $content ); //set up postbox
     
    385391        function donate() {
    386392       
    387             $content = __( 'Have you found this plugin useful? Please help support it\'s continued development with a donation of $20, $50, or $100!', $this->hook );
     393            $content = __( 'Have you found this plugin useful? Please help support it\'s continued development with a donation of $20, $50, or even $100.', $this->hook );
    388394           
    389395            $content .= '<form action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_s-xclick"><input type="hidden" name="hosted_button_id" value="' . $this->paypalcode . '"><input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"><img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"></form>';
  • multi-site-site-list-shortcode/trunk/multi-site-site-list-shortcode.php

    r556690 r700792  
    44    Plugin URI: http://bit51.com/software/multi-site-site-list-shortcode/
    55    Description: Displays the site list with a shortcode for network installations.
    6     Version: Dev
     6    Version: 5.4.1
    77    Domain Path: /languages
    8     Author: Bit51.com
     8    Author: Bit51
    99    Author URI: http://bit51.com
    1010    License: GPLv2
     
    2222    class bit51_mssls extends Bit51 {
    2323   
    24         public $pluginversion   = '5.4'; //current plugin version
     24        public $pluginversion   = '5.4.1'; //current plugin version
    2525   
    2626        //important plugin information
  • multi-site-site-list-shortcode/trunk/readme.txt

    r556690 r700792  
    55Tags: Multisite, index, site list
    66Requires at least: 3.0
    7 Tested up to: 3.4
    8 Stable tag: 5.4
     7Tested up to: 3.5.1
     8Stable tag: 5.4.1
    99
    1010
     
    3232
    3333== Changelog ==
     34
     35= 5.4.1 =
     36* Fixed Bit51 feed with improved error handling
    3437
    3538= 5.4 =
Note: See TracChangeset for help on using the changeset viewer.