diff --git a/.gitignore b/.gitignore index b6fe4af..de46eb3 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ vendor/ *.bak +authors.txt diff --git a/README.md b/README.md index f55c285..5cd8dae 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,9 @@ Featured on [wpmudev](http://premium.wpmudev.org/blog/12-surprisingly-useful-wordpress-plugins-you-dont-know-about/) --- cheers for the review, folks! -**footnotes** aims to be the all-in-one solution for displaying an automatically generated list of references on your Page or Post. The Plugin ships with a set of defaults while also empowering you to control how your footnotes are being displayed. +**footnotes** aims to be the all-in-one solution for displaying an automatically generated list of references on your Page or Post. The Plugin ships with a set of current defaults but also empowers you to control how your footnotes are being displayed. -**footnotes** gives you the ability to display well-formatted footnotes on your WordPress Pages and Posts — those footnotes we know from offline publishing. +**footnotes** gives you the ability to display well-formatted footnotes on your WordPress Pages and Posts—those footnotes we know from offline publishing. ## Getting Started diff --git a/class/task.php b/class/task.php index 26dad9d..48f0f37 100644 --- a/class/task.php +++ b/class/task.php @@ -6,6 +6,8 @@ * @package footnotes * @since 1.5.0 * + * @lastmodified 2021-02-20T0438+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. * @since 2.0.5 Bugfix: Reference container: fix relative position through priority level, thanks to @june01 @imeson @spaceling bug reports, thanks to @spaceling code contribution. @@ -77,6 +79,7 @@ * @since 2.5.4 Bugfix: Tooltips: fix display in Popup Maker popups by correcting a coding error. * @since 2.5.5 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.6 Bugfix: Reference container: optional alternative expanding and collapsing without jQuery for use with hard links, thanks to @hopper87it @pkverma99 issue reports. + * @since 2.5.7 Bugfix: Process: fix footnote duplication by emptying the footnotes list every time the search algorithm is run on the content, thanks to @inoruhana bug report. */ // If called directly, abort. @@ -147,7 +150,7 @@ class MCI_Footnotes_Task { * @link https://wordpress.org/support/topic/reset-footnotes-to-1/ * @link https://wordpress.org/support/topic/reset-footnotes-to-1/#post-13662830 * - * @var int 1; incremented each time after a reference container is inserted + * @var int 1; incremented every time after a reference container is inserted * * This ID disambiguates multiple reference containers in a page * as they may occur when the widget_text hook is active and the page @@ -682,6 +685,7 @@ class MCI_Footnotes_Task { * @link https://wordpress.org/support/topic/possible-to-hide-it-from-start-page/ */ if ( ! MCI_Footnotes_Convert::to_bool( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_START_PAGE_ENABLE ) ) ) { + echo ".home .footnotes_reference_container { display: none; }\r\n"; } @@ -752,7 +756,6 @@ class MCI_Footnotes_Task { echo '.footnote_plugin_index, .footnote_plugin_index_combi {'; if ( $l_bool_column_width_enabled ) { - $l_int_column_width_scalar = MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_INT_BACKLINKS_COLUMN_WIDTH_SCALAR ); $l_str_column_width_unit = MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_BACKLINKS_COLUMN_WIDTH_UNIT ); @@ -770,7 +773,6 @@ class MCI_Footnotes_Task { } if ( $l_bool_column_max_width_enabled ) { - $l_int_column_max_width_scalar = MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_INT_BACKLINKS_COLUMN_MAX_WIDTH_SCALAR ); $l_str_column_max_width_unit = MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_BACKLINKS_COLUMN_MAX_WIDTH_UNIT ); @@ -821,7 +823,6 @@ class MCI_Footnotes_Task { self::$a_bool_alternative_tooltips_enabled = MCI_Footnotes_Convert::to_bool( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_ALTERNATIVE ) ); if ( self::$a_bool_tooltips_enabled ) { - echo '.footnote_tooltip {'; /** @@ -914,7 +915,6 @@ class MCI_Footnotes_Task { printf( ' max-width: %dpx !important;', esc_html( $l_int_max_width ) ); } echo "}\r\n"; - } else { /* * Alternative tooltips. @@ -967,7 +967,6 @@ class MCI_Footnotes_Task { $l_int_fade_out_duration = ! empty( $l_int_fade_out_duration ) ? $l_int_fade_out_duration : '0'; echo ' transition-delay: ' . esc_html( $l_int_fade_out_delay ) . 'ms;'; echo ' transition-duration: ' . esc_html( $l_int_fade_out_duration ) . 'ms;'; - echo "}\r\n"; } @@ -1023,8 +1022,6 @@ class MCI_Footnotes_Task { } exec( $p_str_content, 'post_end' === MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_POSITION ) ); diff --git a/footnotes.php b/footnotes.php index dfaf104..6595909 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.5.6 + * Version: 2.5.7 * Author URI: http://cheret.de/plugins/footnotes-2/ * Text Domain: footnotes * Domain Path: /languages diff --git a/readme.txt b/readme.txt index 72304f3..62e37d4 100755 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: footnote, footnotes, bibliography, formatting, notes, Post, posts, referen Requires at least: 3.9 Tested up to: 5.6.1 Requires PHP: 5.6 -Stable Tag: 2.5.6 +Stable Tag: 2.5.7 License: GPLv3 or later License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -77,6 +77,9 @@ Visit this swift write-up from a **footnotes** user by the name of **Southwest** == Changelog == += 2.5.7 = +- Bugfix: Process: fix footnote duplication by emptying the footnotes list every time the search algorithm is run on the content, thanks to @inoruhana bug report. + = 2.5.6 = - Bugfix: Reference container: optional alternative expanding and collapsing without jQuery for use with hard links, thanks to @hopper87it @pkverma99 issue reports. - Bugfix: Alternative tooltips: shrink width to short content.