WordPress.org

Plugin Directory

Changeset 1768120


Ignore:
Timestamp:
11/16/17 13:25:19 (2 months ago)
Author:
Sparanoid
Message:

Preparing for 1.1.1 release

Location:
space-lover/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • space-lover/trunk/README.txt

    r1757352 r1768120  
    44Tags: comments, content, chinese, china, copywriting 
    55Requires at least: 3.5.1 
    6 Tested up to: 4.8.3 
    7 Stable tag: 1.1.0 
     6Tested up to: 4.9 
     7Stable tag: 1.1.1 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    8585== Changelog == 
    8686 
     87= 1.1.1 = 
     88* Feature: refine ampersand characters fix 
     89* Compatibility check for 4.9 
     90 
    8791= 1.1.0 = 
    8892* Fix: missing space for percentage sign 
     
    139143== Upgrade Notice == 
    140144 
     145= 1.1.1 = 
     146* Feature: refine ampersand characters fix 
     147 
    141148= 1.1.0 = 
    142149* Fix: missing space for percentage sign and unwanted space after special ampersand characters 
  • space-lover/trunk/space-lover.php

    r1757352 r1768120  
    1111 * Plugin URI:        https://sparanoid.com/work/space-lover/ 
    1212 * Description:       Magically add an extra space between Chinese characters and English letters / numbers / common punctuation marks 
    13  * Version:           1.1.0 
     13 * Version:           1.1.1 
    1414 * Author:            Tunghsiao Liu 
    1515 * Author URI:        http://sparanoid.com/ 
     
    6262  // Sometimes WordPress generated output contains characters like `&`. 
    6363  // This causes unwanted additional space from the above rule. 
    64   $content = preg_replace('~(&#?[a-z0-9]+;?[a-z0-9]+;) (\p{Han})(?![^<]*>)~u', '\1\2', $content); 
     64  // 
     65  // https://regex101.com/r/hU3wD2/13 - original HTML entities method 
     66  // https://regex101.com/r/hU3wD2/14 - refined ampersand method 
     67  $content = preg_replace('~(&amp;?(?:amp)?;) (\p{Han})(?![^<]*>)~u', '\1\2', $content); 
    6568 
    6669  // Space for HTML tags 
Note: See TracChangeset for help on using the changeset viewer.