WordPress.org

Plugin Directory

Changeset 1163729


Ignore:
Timestamp:
05/19/15 23:33:30 (3 years ago)
Author:
chorton2227
Message:

Update to version 1.2.2

Location:
wp-glossary-hover
Files:
471 added
6 edited

Legend:

Unmodified
Added
Removed
  • wp-glossary-hover/trunk/README.txt

    r1162727 r1163729  
    55Requires at least: 3.5.1 
    66Tested up to: 4.2.2 
    7 Stable tag: 1.2.1 
     7Stable tag: 1.2.2 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    5757== Changelog == 
    5858 
     59= 1.2.2 = 
     60* Fix encoding between html and xml entities. 
     61 
    5962= 1.2.1 = 
    6063* Decode html entities before adding them as xml. 
  • wp-glossary-hover/trunk/languages/en_US.po

    r1162727 r1163729  
    11msgid "" 
    22msgstr "" 
    3 "Project-Id-Version: WP Glossary Hover v1.2.1\n" 
    4 "POT-Creation-Date: 2015-05-16 08:05-0500\n" 
    5 "PO-Revision-Date: 2015-05-16 08:05-0500\n" 
     3"Project-Id-Version: WP Glossary Hover v1.2.2\n" 
     4"POT-Creation-Date: 2015-05-19 19:12-0500\n" 
     5"PO-Revision-Date: 2015-05-19 19:12-0500\n" 
    66"Last-Translator: Chris Horton <chorton2227@gmail.com>\n" 
    77"Language-Team: Chris Horton <chorton2227@gmail.com>\n" 
  • wp-glossary-hover/trunk/public/class-wp-glossary-hover.php

    r1162727 r1163729  
    2525     * @var     string 
    2626     */ 
    27     const VERSION = '1.2.1'; 
     27    const VERSION = '1.2.2'; 
    2828 
    2929    /** 
  • wp-glossary-hover/trunk/public/includes/class-tooltip-parser.php

    r1162727 r1163729  
    345345     * limit the number characters in the definition, if required. 
    346346     * Trim all non alpha-numeric characters from the end of the definition. 
    347      * Add the read more '...' formatting. 
    348      * 
    349      * Do not re-encode html entities. 
     347     * Add the read more '...' formatting. Re-encode defintion to XML. 
    350348     * 
    351349     * @see      http://php.net/html_entity_decode 
     350     * @see      http://php.net/htmlentities 
    352351     * @since    1.2.0 
    353352     * @param    string    $definition    Definition of glossary term. 
     
    357356 
    358357        // Default flags used by html_entity_decode 
    359         $encoding_flags = ENT_COMPAT | ENT_HTML401; 
    360  
    361         $definition = html_entity_decode($definition, $encoding_flags, $this->encoding); 
     358        $decoding_flags = ENT_COMPAT | ENT_HTML401; 
     359 
     360        // Encode definition to XML 
     361        $encoding_flags = ENT_COMPAT | ENT_XML1; 
     362 
     363        $definition = html_entity_decode($definition, $decoding_flags, $this->encoding); 
    362364        $definition = strip_tags($definition); 
    363365        $definition = $this->limit_characters_in_definition($definition); 
    364366        $definition = preg_replace($this->trim_regex_pattern, '', $definition); 
    365367        $definition = sprintf($this->tooltip_more, $definition); 
     368        $definition = htmlentities($definition, $encoding_flags, $this->encoding); 
    366369        return $definition; 
    367370 
  • wp-glossary-hover/trunk/wp-glossary-hover.php

    r1162727 r1163729  
    1616 * Plugin URI:        https://github.com/chorton2227/WP-Glossary-Hover 
    1717 * Description:       When hovering over a word or phrase show the user created definition. 
    18  * Version:           1.2.1 
     18 * Version:           1.2.2 
    1919 * Author:            Chris Horton <chorton2227@gmail.com> 
    2020 * Author URI:        https://github.com/chorton2227 
Note: See TracChangeset for help on using the changeset viewer.