Plugin Directory

Changeset 1781305


Ignore:
Timestamp:
12/05/2017 11:51:58 AM (8 years ago)
Author:
enivid
Message:

Version 12.

Location:
post-typographer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • post-typographer/trunk/readme.txt

    r1729793 r1781305  
    22Tags: typography, formatting, post, posts, plugin
    33Requires at least: 2.5
    4 Tested up to: 4.8.1
    5 Stable tag: 11
     4Tested up to: 4.9.1
     5Stable tag: 12
    66Author: Andriy Moraru
    7 Version: 11
     7Version: 12
    88Author URI: https://www.earnforex.com
    99
     
    7373== Changelog ==
    7474
     75= 12 =
     76* Fixed: Will no longer mess with the contents of the [pmath] shortcodes.
     77
    7578= 11 =
    7679* Fixed: Replaced numeric HTML entities with literal ones.
  • post-typographer/trunk/typopost.php

    r1729782 r1781305  
    55Description: Formats the text according to typography rules. Works with English texts only.
    66Author: Andriy Moraru
    7 Version: 11
     7Version: 12
    88Author URI: https://www.earnforex.com
    99*/
     
    5353            $without_html[$i] = preg_replace('@ {2,}@', ' ', $without_html[$i]);
    5454
    55             //Add m-dashes with a preceeding non-breaking space, in place of the hyphens, where neeeded
    56             $without_html[$i] = str_replace(' - ', ' — ', $without_html[$i]);
    5755
    5856            //Get the array of strings made of text without text wrapped with [] tags
    59             $without_square = preg_split('@\[(video|code)\].*\[/(video|code)\]@', $without_html[$i]);
     57            $without_square = preg_split('@\[(video|code|(pmath( size=[0-9]+)?))\].*\[/(video|code|pmath)\]@', $without_html[$i]);
     58
     59            //Add m-dashes with a preceding non-breaking space, in place of the hyphens, where needed
     60            $without_square = str_replace(' - ', ' — ', $without_square);
     61
    6062            //Get the array of [] tags from the text
    61             $n_square = preg_match_all('@\[(video|code)\].*\[/(video|code)\]@', $without_html[$i], $square);
     63            $n_square = preg_match_all('@\[(video|code|(pmath( size=[0-9]+)?))\].*\[/(video|code|pmath)\]@', $without_html[$i], $square);
    6264
    6365            for ($j = 0; $j <= $n_square; $j++)
Note: See TracChangeset for help on using the changeset viewer.