From 8228352f7d88f6fba4e8364f4231a151e0e304f1 Mon Sep 17 00:00:00 2001 From: pewgeuges <73141620+pewgeuges@users.noreply.github.com> Date: Wed, 23 Dec 2020 09:51:03 +0000 Subject: [PATCH] urgent bugfix 2.2.7 git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2444860 b8457f37-d9ea-0310-8a92-e5e31aec5664 --- class/settings.php | 20 ++++++++++---------- class/task.php | 6 ++++-- footnotes.php | 4 ++-- readme.txt | 5 ++++- 4 files changed, 20 insertions(+), 15 deletions(-) diff --git a/class/settings.php b/class/settings.php index 8a9e9c8..3f4a07e 100644 --- a/class/settings.php +++ b/class/settings.php @@ -31,7 +31,7 @@ * 2.2.5 options for reference container label element and bottom border, thanks to @markhillyer 2020-12-18T1455+0100 * @see * - * Last modified: 2020-12-20T0518+0100 + * Last modified: 2020-12-23T0747+0100 */ @@ -399,9 +399,9 @@ class MCI_Footnotes_Settings { * @var string * * 2020-11-16T0859+0100 - * - * option to enable/disable the superscript element for referrers, thanks to @cwbayer - * @see + * + * option to enable/disable the superscript element for referrers, thanks to @cwbayer + * @see */ const C_BOOL_FOOTNOTES_REFERRER_SUPERSCRIPT_TAGS = "footnotes_inputfield_referrer_superscript_tags"; const C_BOOL_REFERENCE_CONTAINER_BACKLINK_SYMBOL_ENABLE = "footnotes_inputfield_reference_container_backlink_symbol_enable"; @@ -558,11 +558,11 @@ class MCI_Footnotes_Settings { * @author Stefan Herndler * @since 1.5.0 * @var array - * - * Edited multiple times. - * - * @since 2.1.3 excerpt hook: disable by default, thanks to @nikelaos - * @see + * + * Edited multiple times. + * + * @since 2.1.3 excerpt hook: disable by default, thanks to @nikelaos + * @see */ private $a_arr_Default = array( @@ -624,7 +624,7 @@ class MCI_Footnotes_Settings { // whether to use link elements: self::C_BOOL_LINK_ELEMENT_ENABLED => 'yes', - // excerpt should be disabled: + // excerpt should be disabled: self::C_BOOL_FOOTNOTES_IN_EXCERPT => 'no', // since removal of the_post hook, expert mode is no danger zone diff --git a/class/task.php b/class/task.php index 1976004..62ffcf9 100644 --- a/class/task.php +++ b/class/task.php @@ -47,7 +47,7 @@ * 2.2.6 URL wrap: make the quotation mark optional in the exclusion regex, thanks to @spiralofhope2 2020-12-23T0409+0100 * @see * - * Last modified: 2020-12-23T0423+0100 + * Last modified: 2020-12-23T1047+0100 */ // If called directly, abort: @@ -669,9 +669,11 @@ class MCI_Footnotes_Task { * URLs may be a query string in a URL: * @since 2.2.6 make the quotation mark optional in the exclusion regex, thanks to @spiralofhope2 2020-12-23T0409+0100 * @see + * @since 2.2.7 revert that change in the exclusion regex, thanks to @spiralofhope2 and @spaceling 2020-12-23T1046+0100 + * @see */ if (MCI_Footnotes_Convert::toBool(MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_BOOL_FOOTNOTE_URL_WRAP_ENABLED))) { - $l_str_FootnoteText = preg_replace( '#(?$1', $l_str_FootnoteText ); + $l_str_FootnoteText = preg_replace( '#(?$1', $l_str_FootnoteText ); } // Text to be displayed instead of the footnote diff --git a/footnotes.php b/footnotes.php index 030907b..e075c5c 100755 --- a/footnotes.php +++ b/footnotes.php @@ -4,12 +4,12 @@ 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.2.6 + Version: 2.2.7 Author URI: http://cheret.de/plugins/footnotes-2/ Text Domain: footnotes Domain Path: /languages */ -define( 'FOOTNOTES_VERSION', '2.2.6' ); +define( 'FOOTNOTES_VERSION', '2.2.7' ); /* Copyright 2020 Mark Cheret (email: mark@cheret.de) diff --git a/readme.txt b/readme.txt index a26e1ef..f222e29 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 Requires PHP: 5.6 -Stable Tag: 2.2.6 +Stable Tag: 2.2.7 License: GPLv3 or later License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -80,6 +80,9 @@ Visit this swift write-up from a **footnotes** user by the name of **Southwest** == Changelog == += 2.2.7 = +- Bugfix: Reference container, tooltips: URL wrap: revert the change in the exclusion regex, thanks to @spiralofhope2 and @spaceling + = 2.2.6 = - Bugfix: Reference container, tooltips: URL wrap: make the quotation mark optional wrt query parameters, thanks to @spiralofhope2 - Add: Customization: support for custom templates in sibling folder (should be filterable function, thanks to @misfist)