Plugin Directory

Changeset 372708


Ignore:
Timestamp:
04/13/2011 11:04:21 PM (15 years ago)
Author:
fd
Message:

Workaround for wpautop() bug

Location:
fd-footnotes/trunk
Files:
2 edited

Legend:

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

    r46877 r372708  
    55Description: Elegant and easy to use footnotes
    66Author: John Watson
    7 Version: 1.2
     7Version: 1.21
    88Author URI: http://flagrantdisregard.com
    99
     
    4242        }
    4343
     44        // *****************************************************************************************************
     45        // Workaround for wpautop() bug. Otherwise it sometimes inserts an opening <p> but not the closing </p>.
     46        // There are a bunch of open wpautop tickets. See 4298 and 7988 in particular.
     47        $content .= "\n\n";
     48        // *****************************************************************************************************
     49
    4450        $content .= "<div class='footnotes'>";
    4551        $content .= "<div class='footnotedivider'></div>";
  • fd-footnotes/trunk/readme.txt

    r369761 r372708  
    4848== Changelog ==
    4949
    50 = 1.2 =
    51 * This is a placeholder for the next release.
     50= 1.21 =
     51* Fixed problem where sometimes WordPress would not correctly add the closing
     52  paragraph tag in posts with footnotes. This is a stable workaround for a
     53  wpautop() bug in WordPress. Thanks to Roger Chen for the tip.
Note: See TracChangeset for help on using the changeset viewer.