Plugin Directory

Changeset 1083303


Ignore:
Timestamp:
02/05/2015 05:46:28 PM (11 years ago)
Author:
fd
Message:

Fixed issue when non-breaking space used between footnote number and text

Location:
fd-footnotes/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fd-footnotes/trunk/fdfootnotes.php

    r422017 r1083303  
    55Description: Elegant and easy to use footnotes
    66Author: John Watson
    7 Version: 1.3
     7Version: 1.31
    88Author URI: http://flagrantdisregard.com
    99
     
    121121    $n = 1;
    122122    $notes = array();
    123     if (preg_match_all('/\[(\d+\. .*?)\]/s', $content, $matches)) {
     123    if (preg_match_all('/\[(\d+\..*?)\]/s', $content, $matches)) {
    124124        foreach($matches[0] as $fn) {
    125             $note = preg_replace('/\[\d+\. (.*?)\]/s', '\1', $fn);
     125            $note = preg_replace('/\[\d+\.(.*?)\]/s', '\1', $fn);
    126126            $notes[$n] = $note;
    127127
  • fd-footnotes/trunk/readme.txt

    r981214 r1083303  
    44Tags: posts, writing, editing, footnotes, endnotes, formatting
    55Requires at least: 2.0
    6 Tested up to: 4.0
     6Tested up to: 4.1
    77Stable tag: trunk
    88
     
    5757== Changelog ==
    5858
     59= 1.31 =
     60* Fixed issue when non-breaking space used between footnote number and footnote text
     61
    5962= 1.3 =
    6063* Added option for collapsing footnotes into a single line until manually
Note: See TracChangeset for help on using the changeset viewer.