WordPress.org

Plugin Directory

Changeset 1175837


Ignore:
Timestamp:
06/06/15 12:11:33 (3 years ago)
Author:
chorton2227
Message:

Update to version 1.2.3

Location:
wp-glossary-hover
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-glossary-hover/tags/1.2.3/public/includes/class-tooltip-parser.php

    r1175627 r1175837  
    385385            $definition = substr($definition, 0, $limit_characters); 
    386386 
     387            // Find last occurrence of whitespace within limit 
     388            $position = strrpos($definition, ' '); 
     389             
     390            // Cut at last whitespace within limit 
     391            if (FALSE !== $position) { 
     392                $definition = substr($definition, 0, $position); 
     393            } 
     394 
    387395            // Trim any non-alphanumeric characters from end of definition 
    388396            $definition = preg_replace($this->trim_regex_pattern, '', $definition); 
  • wp-glossary-hover/trunk/public/includes/class-tooltip-parser.php

    r1175627 r1175837  
    385385            $definition = substr($definition, 0, $limit_characters); 
    386386 
     387            // Find last occurrence of whitespace within limit 
     388            $position = strrpos($definition, ' '); 
     389             
     390            // Cut at last whitespace within limit 
     391            if (FALSE !== $position) { 
     392                $definition = substr($definition, 0, $position); 
     393            } 
     394 
    387395            // Trim any non-alphanumeric characters from end of definition 
    388396            $definition = preg_replace($this->trim_regex_pattern, '', $definition); 
Note: See TracChangeset for help on using the changeset viewer.