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 = ''; - // wrap the arrow in a @media print { display:hidden } span - $l_str_FootnoteArrowIndex .= '' . $l_str_Arrow . ' '; - // get the index; add support for legacy index placeholder: + $l_str_FirstFootnoteIndex = ($l_str_Index + 1); + // wrap each index # in a white-space:nowrap span + $l_str_FootnoteArrowIndex = ''; + // wrap the arrow in a @media print { display:hidden } span + $l_str_FootnoteArrowIndex .= '' . $l_str_Arrow . ' '; + // get the index; add support for legacy index placeholder: $l_str_FootnoteArrowIndex .= MCI_Footnotes_Convert::Index(($l_str_Index + 1), MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_STR_FOOTNOTES_COUNTER_STYLE)); $l_str_FootnoteIndex = MCI_Footnotes_Convert::Index(($l_str_Index + 1), MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_STR_FOOTNOTES_COUNTER_STYLE)); @@ -514,8 +516,8 @@ class MCI_Footnotes_Task { $l_str_FootnoteArrowIndex .= ''; - // replace all placeholders in the template templates/public/reference-container-body.html - // The individual arrow and index placeholders are for backcompat + // replace all placeholders in the template templates/public/reference-container-body.html + // The individual arrow and index placeholders are for backcompat $l_obj_Template->replace( array( "post_id" => $l_int_PostID, diff --git a/css/public.css b/css/public.css index 0551302..cd5b68e 100755 --- a/css/public.css +++ b/css/public.css @@ -4,9 +4,9 @@ * Created-Date: 15.05.14 * Created-Time: 16:21 * Since: 1.0 - * Version: 2.0.9d2 + * Version: 2.0.9d3 * - * Last modified: 2020-11-08T1627+0100 + * Last modified: 2020-11-08T1852+0100 */ diff --git a/footnotes.php b/footnotes.php index e4b4816..72e857e 100755 --- a/footnotes.php +++ b/footnotes.php @@ -4,7 +4,7 @@ Plugin URI: https://wordpress.org/plugins/footnotes/ Description: time to bring footnotes to your website! footnotes are known from offline publishing and everybody takes them for granted when reading a magazine. Author: Mark Cheret - Version: 2.0.9d2 + Version: 2.0.9d3 Author URI: http://cheret.de/plugins/footnotes-2/ Text Domain: footnotes Domain Path: /languages diff --git a/readme.txt b/readme.txt index 32800fa..3fd9f70 100755 --- a/readme.txt +++ b/readme.txt @@ -80,14 +80,17 @@ Visit this swift write-up from a **footnotes** user by the name of **Southwest** == Changelog == += 2.0.9d3 = +- BUGFIX: DISABLED the_post HOOK 2020-11-08T1839+0100 + = 2.0.9d2 = - Bugfix: Layout: Footnote referrers: disabled bottom border 2020-11-08T1632+0100 - Bugfix: Libraries: Correct jQuery UI from third party, disabled from WordPress 2020-11-08T1641+0100 -- Update: Accessibility: added 'speaker-mute' class to reference container +- Update: Accessibility: added 'speaker-mute' class to reference container, to meet user needs = 2.0.9d1 = - Bugfix: Libraries: Re-added jQuery UI from third party to look whether it can fix a broken tooltip display 2020-11-07T1604+0100 -- Bugfix: Settings layout: removed 80% width rule for input, text areas, select boxes +- Bugfix: Settings layout: removed 80% width rule for input, text areas, select boxes, on user request = 2.0.9d0 = - Bugfix: Layout: Footnote referrers: more efficiently disable underline unless hovered