Plugin Directory

Changeset 157336


Ignore:
Timestamp:
09/23/2009 07:16:08 PM (17 years ago)
Author:
finalcut
Message:

fixed a variety of issues identified at http://code.google.com/p/wp-feedlist/issues/list (issues: 15, 17, 22, 30, 31, 32, 37)

Location:
feedlist/trunk/feedList
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • feedlist/trunk/feedList/feedlist.php

    r132812 r157336  
    1 <?
     1<?php
    22/*
    33    Plugin Name: FeedList
     
    66    Author: Bill Rawlinson
    77    Author URI: http://blog.rawlinson.us/
    8     Version: 2.23
     8    Version: 2.24
    99*/
    1010
    11     // include files
    12         $relroot = dirname(__FILE__).'/../../../';
    13         require_once('feedListExtensions.php');
    14         // get the magpie libary
    15             if (file_exists($relroot . 'wp-includes/rss.php')) {
     11// setup error level
     12 error_reporting(E_ERROR);
     13
     14
     15
     16    // include files
     17            $relroot = ABSPATH . '/';
     18            require_once('feedListExtensions.php');
     19        // get the magpie libary
     20            if (file_exists($relroot . 'wp-includes/rss.php')) {
    1621                require_once($relroot . 'wp-includes/rss.php');
    1722            } else if(file_exists($relroot . 'wp-includes/rss-functions.php')){
     
    97102                            }
    98103                            // Slice off the number of items that we want:
    99                             if ($this->args['num_items'] > 0)
     104                            if ($this->args['num_items'] > 0 && is_array($this->items))
    100105                            {
    101106                                $this->items = array_slice($this->items, 0, $this->args['num_items']);
     
    237242                    }
    238243                    // Slice off the number of items that we want:
    239                     if ($this->args['num_items'] > 0)
     244                    if ($this->args['num_items'] > 0 && is_array($this->items))
    240245                    {
    241246                        $this->items = array_slice($this->items, 0, $this->args['num_items']);
     
    344349
    345350                    if($this->args['show_date_per_item']){
    346                         $thisItemDate =  '<div class="feedItemDate">' . $item['feeddate'] . '<div>';
     351                        $thisItemDate =  '<div class="feedItemDate">' . $item['feeddate'] . '</div>';
    347352                    }
    348353
     
    602607        function randomFeedList($args){
    603608            if(!is_array($args)){
    604                 $this->args = parse_str($args,$a);
    605                 $this->args = $a;
     609                $args = parse_str($args,$a);
     610                $args = $a;
    606611            }
    607612            $feed = new FeedList($args);
     
    674679                      return r;
    675680                  } else {
    676                       alert("Handler could not be removed");
     681                      // alert("Handler could not be removed");
    677682                  }
    678683                } 
  • feedlist/trunk/feedList/readme.txt

    r132812 r157336  
    44Tags: rss, atom, feeds, listings
    55Requires at least: 1.5
    6 Tested up to: 2.7.1
    7 Stable tag: 2.23
     6Tested up to: 2.8.4
     7Stable tag: 2.24
    88
    99Allows you to display lists of links from an rss or atom feed on your blog.
     
    9191
    9292    07 Jul 2009         Added "feedListExtensions.php" with first extension point, "transformURL" see bottom of this document for help on extensions.
     93
     94    23 Sep 2009         fixed a variety of issues identified at http://code.google.com/p/wp-feedlist/issues/list (issues: 15, 17, 22, 30, 31, 32, 37)
    9395-------------------------------------------------------------------------------------------------------
    9496 
     
    120122    * before (default: "<li>") - Tag placed before the item
    121123    * after (default: "</li>") - Tag placed after the item 
    122     * description_seperator (default: " - ") - Between the link and the item
     124    * description_separator (default: " - ") - Between the link and the item
    123125    * encoding (default: false) - Change to true if you are reading in a ISO-8859-1 formatted file.  Basically, if you see a bunch of question marks (?) in your titles set this to true and see if it fixes the problem.
    124126    * sort (default: "none") - takes one of three values; none, asc, desc
Note: See TracChangeset for help on using the changeset viewer.