Plugin Directory

Changeset 1316631


Ignore:
Timestamp:
12/26/2015 10:43:49 PM (10 years ago)
Author:
LinSoftware
Message:

removed support for Amazon Short Links

Location:
check-amazon-link/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • check-amazon-link/trunk/AZLC_HTMLParser.php

    r1259268 r1316631  
    5353                    $i ++;
    5454                }
    55                 // handle shortcode urls
    56                 if ( stripos( $url_parts['host'], "amzn.to" ) !== false && $this->supports_curl ) {
    57                     $finalURL = $this->getFinalUrl($url);
    58                     if(empty($finalURL)) {
    59                         break;
    60                     }
    61                     $data[ $i ]['url']       = $finalURL;
    62                     $data[ $i ]['link_text'] = $element->innertext;
    63                     $data[ $i ]['link_code'] = $element->outertext;
    64                     $data[ $i ]['link_type'] = "a";
    65                     $i ++;
    66                 }
     55                // handle Amazon Short Links urls
     56                // this is commented out due to concerns over violating Amazon's TOS
     57                // it would be nice to be able to check shortcodes
     58                // so if you're reading this and have any thoughts, send them to the author's email
     59                //if ( stripos( $url_parts['host'], "amzn.to" ) !== false && $this->supports_curl ) {
     60                //  $finalURL = $this->getFinalUrl($url);
     61                //  if(empty($finalURL)) {
     62                //      break;
     63                //  }
     64                //  $data[ $i ]['url']       = $finalURL;
     65                //  $data[ $i ]['link_text'] = $element->innertext;
     66                //  $data[ $i ]['link_code'] = $element->outertext;
     67                //  $data[ $i ]['link_type'] = "a";
     68                //  $i ++;
     69                //}
    6770
    6871            }
  • check-amazon-link/trunk/readme.txt

    r1309405 r1316631  
    3535* Uses the Amazon Product Advertising API to request current inventory status from Amazon.
    3636* Supports Wordpress Multisite
    37 * Supports Amazon Short Links (amzn.to) as of version 1.1.0
    3837
    3938== Installation ==
Note: See TracChangeset for help on using the changeset viewer.