traceability update 2.5.6d0 to clear the diffs before switching back to tab indentation, requiring the next commit to be entirely dedicated to whitespace \s changes so as to avoid screwing up code diffs.
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2477277 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
84c03f2ece
commit
177841be4b
4 changed files with 54 additions and 30 deletions
|
@ -7,7 +7,7 @@
|
|||
* @since 1.5.0
|
||||
*
|
||||
*
|
||||
* @lastmodified 2021-02-17T1142+0100
|
||||
* @lastmodified 2021-02-17T1754+0100
|
||||
*
|
||||
* @since 2.0.0 Bugfix: various.
|
||||
* @since 2.0.4 Bugfix: Referrers and backlinks: remove hard links to streamline browsing history, thanks to @theroninjedi47 bug report.
|
||||
|
@ -1700,12 +1700,22 @@ class MCI_Footnotes_Task {
|
|||
// increase footnote index
|
||||
$l_int_FootnoteIndex++;
|
||||
}
|
||||
// add offset to the new starting position
|
||||
$l_int_PosStart += $l_int_Length + strlen($l_str_EndingTag);
|
||||
|
||||
/**
|
||||
* Fixes a footnotes numbering bug (happening under de facto rare circumstances).
|
||||
*
|
||||
* - Bugfix: Fixed occasional bug where footnote ordering could be out of sequence
|
||||
*
|
||||
* @since 1.6.4
|
||||
* @date 2016-06-29T0054+0000
|
||||
* @committer @dartiss
|
||||
* @link https://plugins.trac.wordpress.org/browser/footnotes/trunk/class/task.php?rev=1445718 @dartiss’ class/task.php
|
||||
* @link https://plugins.trac.wordpress.org/log/footnotes/trunk/class/task.php?rev=1445718 @dartiss re-added class/task.php
|
||||
* @link https://plugins.trac.wordpress.org/browser/footnotes/trunk/class?rev=1445711 class/ w/o task.php
|
||||
* @link https://plugins.trac.wordpress.org/changeset/1445711/footnotes/trunk/class @dartiss deleted class/task.php
|
||||
* @link https://plugins.trac.wordpress.org/browser/footnotes/trunk/class/task.php?rev=1026210 @aricura’s latest class/task.php
|
||||
*
|
||||
*
|
||||
* - Bugfix: Process: fix numbering bug impacting footnote #2 with footnote #1 close to start, thanks to @rumperuu bug report, thanks to @lolzim code contribution.
|
||||
*
|
||||
* @since 2.5.5
|
||||
|
@ -1716,12 +1726,15 @@ class MCI_Footnotes_Task {
|
|||
* @reporter @rumperuu
|
||||
* @link https://wordpress.org/support/topic/footnotes-numbered-incorrectly/
|
||||
*
|
||||
* This line caused the algorithm to jump back near the post start, disturbing
|
||||
* the order of the footnotes depending on the text before the first footnote,
|
||||
* the length of the first footnote and the length of the footnote and tooltip
|
||||
* templates.
|
||||
* This assignment was overridden by another one, causing the algorithm to jump back
|
||||
* near the post start to a position calculated as the sum of the length of the last
|
||||
* footnote and the length of the last footnote replace text.
|
||||
* A bug disturbing the order of the footnotes depending on the text before the first
|
||||
* footnote, the length of the first footnote and the length of the templates for the
|
||||
* footnote and the tooltip. Moreover, it was causing non-trivial process garbage.
|
||||
*/
|
||||
// $l_int_PosStart = $l_int_Length + strlen($l_str_FootnoteReplaceText);
|
||||
// add offset to the new starting position
|
||||
$l_int_PosStart += $l_int_Length + strlen($l_str_EndingTag);
|
||||
|
||||
} while (true);
|
||||
|
||||
|
|
|
@ -1,9 +1,15 @@
|
|||
<?php
|
||||
/**
|
||||
* Widget base.
|
||||
*
|
||||
* @filesource
|
||||
* @author Stefan Herndler
|
||||
* @since x.x.x 14.09.14 14:30
|
||||
* @since 1.5.0
|
||||
* @date 14.09.14 14:30
|
||||
*
|
||||
* @lastmodified 2021-02-18T0306+0100
|
||||
* @date 2021-02-18T0240+0100
|
||||
* @since 1.6.4 Update: replace deprecated function WP_Widget() with recommended __construct(), thanks to @dartiss code contribution.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -60,6 +66,13 @@ abstract class MCI_Footnotes_WidgetBase extends WP_Widget {
|
|||
*
|
||||
* @author Stefan Herndler
|
||||
* @since 1.5.0
|
||||
*
|
||||
* - Update: replace deprecated function WP_Widget() with recommended __construct(), thanks to @dartiss code contribution.
|
||||
*
|
||||
* @since 1.6.4
|
||||
* @contributor @dartiss
|
||||
* @link https://plugins.trac.wordpress.org/browser/footnotes/trunk/class/widgets/base.php?rev=1445720
|
||||
* “The called constructor method for WP_Widget in MCI_Footnotes_Widget_ReferenceContainer is deprecated since version 4.3.0! Use __construct() instead.”
|
||||
*/
|
||||
public function __construct() {
|
||||
$l_arr_WidgetOptions = array("classname" => __CLASS__, "description" => $this->getDescription());
|
||||
|
|
Reference in a new issue