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
This commit is contained in:
pewgeuges 2020-11-08 17:54:50 +00:00
parent dd942f4c51
commit 9f732e0b38
5 changed files with 26 additions and 21 deletions

View file

@ -153,7 +153,7 @@ class MCI_Footnotes {
'mci-footnotes-css-public', 'mci-footnotes-css-public',
plugins_url('../css/public.css', __FILE__), plugins_url('../css/public.css', __FILE__),
'', '',
'2.0.9d2' '2.0.9d3'
); );
} }

View file

@ -11,7 +11,9 @@
* Edited for v2.0.5: Autoload / infinite scroll support added thanks to code from * Edited for v2.0.5: Autoload / infinite scroll support added thanks to code from
* @docteurfitness <https://wordpress.org/support/topic/auto-load-post-compatibility-update/> * @docteurfitness <https://wordpress.org/support/topic/auto-load-post-compatibility-update/>
* *
* 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: // If called directly, abort:
@ -65,9 +67,9 @@ class MCI_Footnotes_Task {
* beneath the content and above other features added by other plugins. * beneath the content and above other features added by other plugins.
* Requested by users: <https://wordpress.org/support/topic/change-the-position-5/> * Requested by users: <https://wordpress.org/support/topic/change-the-position-5/>
* Documentation: <https://codex.wordpress.org/Plugin_API/#Hook_in_your_Filter> * Documentation: <https://codex.wordpress.org/Plugin_API/#Hook_in_your_Filter>
* *
* But this change is suspected to cause issues and needs to be assessed! * But this change is suspected to cause issues and needs to be assessed!
* See <https://wordpress.org/support/topic/change-the-position-5/#post-13612697> * See <https://wordpress.org/support/topic/change-the-position-5/#post-13612697>
*/ */
public function registerHooks() { public function registerHooks() {
// append custom css to the header // 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))) { 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); 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))) { // DISABLED the_post HOOK 2020-11-08T1839+0100
add_filter('the_post', array($this, "the_post"), PHP_INT_MAX); //
} //
// reset stored footnotes when displaying the header // reset stored footnotes when displaying the header
self::$a_arr_Footnotes = array(); self::$a_arr_Footnotes = array();
self::$a_bool_AllowLoveMe = true; self::$a_bool_AllowLoveMe = true;
@ -488,12 +490,12 @@ class MCI_Footnotes_Task {
continue; continue;
} }
// generate content of footnote index cell // generate content of footnote index cell
$l_str_FirstFootnoteIndex = ($l_str_Index + 1); $l_str_FirstFootnoteIndex = ($l_str_Index + 1);
// wrap each index # in a white-space:nowrap span // wrap each index # in a white-space:nowrap span
$l_str_FootnoteArrowIndex = '<span class="footnote_index_item">'; $l_str_FootnoteArrowIndex = '<span class="footnote_index_item">';
// wrap the arrow in a @media print { display:hidden } span // wrap the arrow in a @media print { display:hidden } span
$l_str_FootnoteArrowIndex .= '<span class="footnote_index_arrow">' . $l_str_Arrow . '&#x200A;</span>'; $l_str_FootnoteArrowIndex .= '<span class="footnote_index_arrow">' . $l_str_Arrow . '&#x200A;</span>';
// get the index; add support for legacy index placeholder: // 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_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)); $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 .= '</span>'; $l_str_FootnoteArrowIndex .= '</span>';
// replace all placeholders in the template templates/public/reference-container-body.html // replace all placeholders in the template templates/public/reference-container-body.html
// The individual arrow and index placeholders are for backcompat // The individual arrow and index placeholders are for backcompat
$l_obj_Template->replace( $l_obj_Template->replace(
array( array(
"post_id" => $l_int_PostID, "post_id" => $l_int_PostID,

View file

@ -4,9 +4,9 @@
* Created-Date: 15.05.14 * Created-Date: 15.05.14
* Created-Time: 16:21 * Created-Time: 16:21
* Since: 1.0 * Since: 1.0
* Version: 2.0.9d2 * Version: 2.0.9d3
* *
* Last modified: 2020-11-08T1627+0100 * Last modified: 2020-11-08T1852+0100
*/ */

View file

@ -4,7 +4,7 @@
Plugin URI: https://wordpress.org/plugins/footnotes/ 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. 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 Author: Mark Cheret
Version: 2.0.9d2 Version: 2.0.9d3
Author URI: http://cheret.de/plugins/footnotes-2/ Author URI: http://cheret.de/plugins/footnotes-2/
Text Domain: footnotes Text Domain: footnotes
Domain Path: /languages Domain Path: /languages

View file

@ -80,14 +80,17 @@ Visit this swift write-up from a **footnotes** user by the name of **Southwest**
== Changelog == == Changelog ==
= 2.0.9d3 =
- BUGFIX: DISABLED the_post HOOK 2020-11-08T1839+0100
= 2.0.9d2 = = 2.0.9d2 =
- Bugfix: Layout: Footnote referrers: disabled bottom border 2020-11-08T1632+0100 - 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 - 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 = = 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: 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 = = 2.0.9d0 =
- Bugfix: Layout: Footnote referrers: more efficiently disable underline unless hovered - Bugfix: Layout: Footnote referrers: more efficiently disable underline unless hovered