Plugin Directory

Changeset 700270


Ignore:
Timestamp:
04/19/2013 12:46:46 PM (13 years ago)
Author:
Bit51
Message:

Version 3.4.10

Location:
better-wp-security
Files:
65 added
3 edited

Legend:

Unmodified
Added
Removed
  • better-wp-security/trunk/better-wp-security.php

    r690782 r700270  
    44    Plugin URI: http://bit51.com/software/better-wp-security/
    55    Description: Helps protect your Wordpress installation from attackers. Hardens standard Wordpress security by hiding vital areas of your site, protecting access to important files via htaccess, preventing brute-force login attempts, detecting attack attempts, and more.
    6     Version: 3.4.9
     6    Version: 3.4.10
    77    Text Domain: better-wp-security
    88    Domain Path: /languages
     
    2020    class bit51_bwps extends bit51 {
    2121   
    22         public $pluginversion   = '3059'; //current plugin version
     22        public $pluginversion   = '3060'; //current plugin version
    2323   
    2424        //important plugin information
  • better-wp-security/trunk/lib/bit51/bit51.php

    r621519 r700270  
    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>';
  • better-wp-security/trunk/readme.txt

    r690782 r700270  
    66Requires at least: 3.4
    77Tested up to: 3.5.1
    8 Stable tag: 3.4.9
     8Stable tag: 3.4.10
    99
    1010The easiest, most effective way to secure WordPress. Improve the security of any WordPress site in seconds.
     
    152152
    153153== Changelog ==
     154
     155= 3.4.10 =
     156* Replaced feed with standard WordPress feed
     157* Added better error checking for feed should Feedburner (or any other provider) kill it again
    154158
    155159= 3.4.9 =
Note: See TracChangeset for help on using the changeset viewer.