WordPress.org

Plugin Directory

Changeset 674764


Ignore:
Timestamp:
02/28/13 21:20:02 (14 months ago)
Author:
Strictly Software
Message:

Fixed bug with nested tags or deeplinks within other attributes by using a placeholder

Location:
strictly-autotags/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • strictly-autotags/trunk/readme.txt

    r633331 r674764  
    66Requires at least: 2.0.2                     
    77Tested up to: 3.4.2 
    8 Stable tag: 2.8.1 
     8Stable tag: 2.8.2 
    99 
    1010Strictly AutoTags is a plugin that automatically adds the most relevant tags to posts. 
     
    181181= 2.8.1 = 
    182182* Remove old call to debug statement in RemoveBoldAndLinks (I use it in other plugins which is why it didn't error for me) 
     183 
     184= 2.8.2 = 
     185* Fixed bug that sometimes caused nested deeplinking and bolding within HTML attributes by using placeholders to prevent reverse lookups 
  • strictly-autotags/trunk/strictlyautotags.class.php

    r633331 r674764  
    33/** 
    44 * Plugin Name: Strictly Auto Tags 
    5  * Version: 2.8.1 
     5 * Version: 2.8.2 
    66 * Plugin URI: http://www.strictly-software.com/plugins/strictly-auto-tags/ 
    77 * Description: This plugin automatically detects tags to place against posts using existing tags as well as a simple formula that detects common tag formats such as Acronyms, names and countries. Whereas other smart tag plugins only detect a single occurance of a tag within a post this plugin will search for the most used tags within the content so that only the most relevant tags get added. 
     
    2626    * @var string 
    2727    */ 
    28     protected $version = "2.8.1"; 
     28    protected $version = "2.8.2"; 
    2929 
    3030    /** 
     
    528528 
    529529            ShowDebugAutoTag("lets loop through our post tags"); 
     530 
     531            // replace 
     532            $content = str_replace("'","##Q##",$content); 
    530533 
    531534            //loop and bold unless they are already inside a bold tag 
     
    571574        } 
    572575 
     576        // replace 
     577        $content = str_replace("'","##Q##",$content); 
     578 
    573579        ShowDebugAutoTag("look at how it would appear"); 
    574580         
     
    637643 
    638644            $lasttag = $lastslug = ""; 
     645 
     646            // replace 
     647            $content = str_replace("'","##Q##",$content); 
     648 
    639649            //loop and bold unless they are already inside a bold tag 
    640650            foreach($this->deeplinkarray as $tag){ 
     
    711721                        $content = preg_replace("@(<(a)[^>]*>[^<]*?)(<a class=\"StrictlyAutoTagAnchor\"[^>]+?>" .  preg_quote($tag->name) . "<\/a>)(.*?<\/?\\2>)@i","$1{$tag->name}$4",$content); 
    712722 
    713                     } 
    714  
    715                      
    716                 } 
     723                    }                    
     724                } 
     725                 
     726                // put placeholder back 
     727                $content = str_replace("##Q##","'",$content); 
    717728            } 
    718729 
Note: See TracChangeset for help on using the changeset viewer.