From 9f732e0b383052cf0eff626ab965a9902a8bcfac Mon Sep 17 00:00:00 2001
From: pewgeuges <73141620+pewgeuges@users.noreply.github.com>
Date: Sun, 8 Nov 2020 17:54:50 +0000
Subject: [PATCH] Development version 2.0.9d3 DISABLED the_post HOOK
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2414813 b8457f37-d9ea-0310-8a92-e5e31aec5664
---
class/init.php | 2 +-
class/task.php | 32 +++++++++++++++++---------------
css/public.css | 4 ++--
footnotes.php | 2 +-
readme.txt | 7 +++++--
5 files changed, 26 insertions(+), 21 deletions(-)
diff --git a/class/init.php b/class/init.php
index 48d7765..0906a1a 100644
--- a/class/init.php
+++ b/class/init.php
@@ -153,7 +153,7 @@ class MCI_Footnotes {
'mci-footnotes-css-public',
plugins_url('../css/public.css', __FILE__),
'',
- '2.0.9d2'
+ '2.0.9d3'
);
}
diff --git a/class/task.php b/class/task.php
index 4d1a0bc..95f1475 100644
--- a/class/task.php
+++ b/class/task.php
@@ -11,7 +11,9 @@
* Edited for v2.0.5: Autoload / infinite scroll support added thanks to code from
* @docteurfitness
*
- * Last modified 2020-11-06T1516+0100
+ * Edited for v2.0.9: DISABLED the_post HOOK 2020-11-08T1839+0100
+ *
+ * Last modified 2020-11-08T1850+0100
*/
// If called directly, abort:
@@ -65,9 +67,9 @@ class MCI_Footnotes_Task {
* beneath the content and above other features added by other plugins.
* Requested by users:
* Documentation:
- *
- * But this change is suspected to cause issues and needs to be assessed!
- * See
+ *
+ * But this change is suspected to cause issues and needs to be assessed!
+ * See
*/
public function registerHooks() {
// append custom css to the header
@@ -91,9 +93,9 @@ class MCI_Footnotes_Task {
if (MCI_Footnotes_Convert::toBool(MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_BOOL_EXPERT_LOOKUP_WIDGET_TEXT))) {
add_filter('widget_text', array($this, "widget_text"), PHP_INT_MAX);
}
- if (MCI_Footnotes_Convert::toBool(MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_BOOL_EXPERT_LOOKUP_THE_POST))) {
- add_filter('the_post', array($this, "the_post"), PHP_INT_MAX);
- }
+ // DISABLED the_post HOOK 2020-11-08T1839+0100
+ //
+ //
// reset stored footnotes when displaying the header
self::$a_arr_Footnotes = array();
self::$a_bool_AllowLoveMe = true;
@@ -488,12 +490,12 @@ class MCI_Footnotes_Task {
continue;
}
// generate content of footnote index cell
- $l_str_FirstFootnoteIndex = ($l_str_Index + 1);
- // wrap each index # in a white-space:nowrap span
- $l_str_FootnoteArrowIndex = '