Plugin Directory

Changeset 707672


Ignore:
Timestamp:
05/03/2013 10:40:22 PM (13 years ago)
Author:
bergh
Message:

0.3.1 bugfix upgrade

Location:
link-icons/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • link-icons/trunk/link-icon.php

    r706940 r707672  
    55Description: Link Icons adds icons to your links to indicate if it's to an external site, an image etc.
    66Author: Erik Bergh
    7 Version: 0.3
     7Version: 0.3.1
    88Author URI: http://www.bergh.me
    99*/
  • link-icons/trunk/link_icons_functions.php

    r706940 r707672  
    22function link_icons($content)
    33{
    4     $D = new DOMDocument;
    5     $content=mb_convert_encoding($content, 'HTML-ENTITIES', "UTF-8");
    6     $D->loadHTML($content);
    7     processElement($D);
    8     return $D->saveHTML();
     4    if(strlen($content)>1)
     5    {
     6        //error_log($content, 0);
     7        $D = new DOMDocument;
     8        $content=mb_convert_encoding($content, 'HTML-ENTITIES', "UTF-8");
     9        $D->loadHTML($content);
     10        processElement($D);
     11        return $D->saveHTML();
     12    }
    913}   
    1014
     
    3640    $linkURL = $url;
    3741    $header=get_headers($url,1);   
     42   
    3843    $contentType=$header['Content-Type'];
     44   
     45    if(is_array($contentType)) $contentType = $contentType[0];
    3946   
    4047    // is the link a directlink to an image?
     
    5562   
    5663    // checking if it is a internal or external link
    57     elseif(substr($linkURL,0,7)=="http://")
     64    elseif(substr($linkURL,0,7)=="http://" || substr($linkURL,0,8)=="https://")
    5865    {
    5966        $linkURL=substr($linkURL,7,strlen($linkURL)-7);
  • link-icons/trunk/readme.txt

    r706949 r707672  
    22Contributors: bergh
    33Donate link:
    4 Tags:  Link, Icons, External link
     4Tags:  Link, Icons, External link, Image link, Video link
    55Requires at least: 3.3
    66Tested up to: 3.5.1
    7 Stable tag: 0.3
     7Stable tag: 0.3.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1717Link Icons does not connect to any external sites.
    1818
    19 Since Link Icons use Http Header a caching plugin for your wordpress site is recomended.
     19Since Link Icons uses Http Header to check content type, using a caching plugin for your wordpress site is recomended.
     20
     21
     22= 0.3.1 =
     23
     24*   Fix for this http://wordpress.org/support/topic/i-will-come-back-later
     25*   Fix for https-links
    2026
    2127= 0.3 =
     
    8187== Upgrade Notice ==
    8288
    83 *   Ignores <a>-tags if it wraps an <img>.
    84 *   Sets icons to links to URLs that return Image content type
     89*   Fix for this http://wordpress.org/support/topic/i-will-come-back-later
     90*   Fix for https-links
Note: See TracChangeset for help on using the changeset viewer.