Changeset 93


Ignore:
Timestamp:
03/24/2009 09:37:10 AM (3 years ago)
Author:
amir
Message:

Fix for the break of the uncategorized bug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WordPress/plugin/transposh/parser.php

    r90 r93  
    569569 
    570570                        //Don't break on ` so for our use we don't consider it an entity 
    571                         //e.g. Jack`s apple 
    572                         if(!($entity ==  "’" || $entity == "'" || $entity == "'")) 
     571                        //e.g. Jack`s apple.  
     572                        //Exception: don't break when we there is a white space after the apostrophe. e.g. `uncategorized`  
     573                        if(($entity ==  "’" || $entity == "'" || $entity == "'")  
     574                            && $page[$end_pos + 1] != " ") 
     575                        { 
     576                                $is_breaker = FALSE; 
     577                        } 
     578                        else 
    573579                        { 
    574580                                $is_breaker = TRUE; 
    575581                        } 
     582                         
    576583 
    577584                        //It is an html entity. 
Note: See TracChangeset for help on using the changeset viewer.