Plugin Directory

Changeset 222264


Ignore:
Timestamp:
03/28/2010 06:33:30 AM (16 years ago)
Author:
warkior
Message:
 
Location:
amazonfeed/trunk
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • amazonfeed/trunk/amazonfeed.php

    r207177 r222264  
    44Plugin URI: http://www.warkensoft.com/products/amazonfeed-wordpress-plugin/
    55Description: Make money from your blog by advertising Amazon.com products specifically related to the topic of your posts.
    6 Version: 1.9
     6Version: 2.0
    77Author: WarkenSoft Productions
    88Author URI: http://warkensoft.com/
     
    7070        {
    7171            add_action('the_content', array(&$amazonFeedObj, 'wp_content'));
    72            
    73            
    7472        }
    7573    }
    76 
    77 ?>
  • amazonfeed/trunk/php/amazonfeed.class.php

    r185927 r222264  
    2222    var $table_products = "";
    2323
    24     var $version        = "1.9";
     24    var $version        = "2.0";
    2525   
    2626    var $validate       = array();
     
    100100            else
    101101            {
     102                if(!strpos($_SERVER['REQUEST_URI'], 'amazonfeed/php/amazonfeed.class.php'))
    102103                $this->admin_notices[] = 'AmazonFeed is almost ready.  Please visit the management page (Tools > AmazonFeed) to complete the ' .
    103104                'installation process and enter your Amazon credentials.';
     
    359360                        "Reworked product caching for more robust storage and more advanced potential future features.<br/>" .
    360361                        "Added ability to block specific products from being displayed.<br/>" .
     362                        "");
     363            }
     364           
     365            if($this->options['Version'] < '2.0')
     366            {
     367                $this->options['Version'] = '2.0';
     368                update_option('amazonFeedOptions', $this->options);
     369                $this->admin_alert("Plugin upgraded to v. " . $this->options['Version'] . "<br/>" .
     370                        "Removed Amazon products from appearing in blog feeds in order to better comply with Amazon regulations.<br/>" .
    361371                        "");
    362372            }
     
    10581068        global $post;
    10591069       
     1070        if(is_feed()) return($content);
     1071
    10601072        $params = array();
    10611073       
    10621074        // Check to see if we have custom keywords for the page.
    10631075        $custom_keywords = get_post_meta($post->ID, '_amazonfeed_keywords', true);
    1064 
     1076       
    10651077        if($this->options['Version'] > '1.0')
    10661078        {
     
    19561968}
    19571969}
    1958 ?>
Note: See TracChangeset for help on using the changeset viewer.