From 5091fc40138631eb9f45dd9093f1ab7348aef848 Mon Sep 17 00:00:00 2001 From: pewgeuges <73141620+pewgeuges@users.noreply.github.com> Date: Wed, 9 Dec 2020 18:26:31 +0000 Subject: [PATCH] development 2.2.0d5 fixing URL wrap bug git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2435820 b8457f37-d9ea-0310-8a92-e5e31aec5664 --- class/task.php | 8 +++++--- css/public.css | 6 +++--- css/settings.css | 4 ++-- footnotes.php | 4 ++-- readme.txt | 4 +++- 5 files changed, 15 insertions(+), 11 deletions(-) diff --git a/class/task.php b/class/task.php index 3f0f22a..c7212a4 100644 --- a/class/task.php +++ b/class/task.php @@ -26,8 +26,9 @@ * 2.1.4 scroll offset and duration settings 2020-12-05T0538+0100 * 2.1.4 tooltip display duration settings 2020-12-06T1320+0100 * 2.2.0 option to disable URL line wrapping 2020-12-09T1606+0100 + * 2.2.0 add catch-all exclusion to fix URL line wrapping 2020-12-09T1921+0100 * - * Last modified: 2020-12-09T1607+0100 + * Last modified: 2020-12-09T1921+0100 */ // If called directly, abort: @@ -518,10 +519,11 @@ class MCI_Footnotes_Task { // fix line wrapping of URLs (hyperlinked or not) based on pattern, not link element, // to prevent them from hanging out of the tooltip in non-Unicode-compliant user agents - // spare however values of the href and the src arguments! + // spare however values of the href and the src arguments! + // Even ARIA labels may take an URL as value, so use \w=. as a catch-all. // see public.css 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/css/public.css b/css/public.css index ef0d16d..10d8614 100755 --- a/css/public.css +++ b/css/public.css @@ -5,9 +5,9 @@ * Created-Time: 16:21 * Since: 1.0 * - * Version: 2.2.0d4 + * Version: 2.2.0d5 * - * Last modified: 2020-12-09T1717+0100 + * Last modified: 2020-12-09T1924+0100 */ @@ -99,7 +99,7 @@ Classes: .footnote_tooltip { display: none; - z-index: 99999; + z-index: 2147483647; cursor: auto; text-align: left; padding: 12px; diff --git a/css/settings.css b/css/settings.css index 2a1e9ac..0b4c0ef 100755 --- a/css/settings.css +++ b/css/settings.css @@ -5,9 +5,9 @@ * Created-Time: 16:21 * Since: 1.0 * - * Version: 2.2.0d4 + * Version: 2.2.0d5 * - * Last modified: 2020-12-09T1717+0100 + * Last modified: 2020-12-09T1924+0100 */ diff --git a/footnotes.php b/footnotes.php index 9e59294..ce99dfa 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.0d4 + Version: 2.2.0d5 Author URI: http://cheret.de/plugins/footnotes-2/ Text Domain: footnotes Domain Path: /languages */ -define( 'FOOTNOTES_VERSION', '2.2.0d4' ); +define( 'FOOTNOTES_VERSION', '2.2.0d5' ); /* Copyright 2020 Mark Cheret (email: mark@cheret.de) diff --git a/readme.txt b/readme.txt index 6eb62ba..e07741e 100755 --- a/readme.txt +++ b/readme.txt @@ -80,7 +80,9 @@ Visit this swift write-up from a **footnotes** user by the name of **Southwest** == Changelog == -= 2.2.0d4 = += 2.2.0d5 = +- Bugfix: Reference container, tooltips: fix issues with URL wrap span by catch-all lookbehind +- Bugfix: Tooltips: set z-index to maximum to address display issues with overlay content - Bugfix: Dashboard: fix settings bug by canceling new tab for CSS - Bugfix: add option to disable URL line wrapping added for Unicode non conformant browsers - Update: Dashboard: reorder tabs, move CSS to extra tab, update tab labels