development 2.2.0d5 fixing URL wrap bug

git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2435820 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
pewgeuges 2020-12-09 18:26:31 +00:00
parent aeb18f93a6
commit 5091fc4013
5 changed files with 15 additions and 11 deletions

View file

@ -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( '#(?<!href=.)(?<!src=.)(https?://[^\\s<]+)#', '<span class="footnote_url_wrap">$1</span>', $l_str_FootnoteText );
$l_str_FootnoteText = preg_replace( '#(?<!\w=.)(https?://[^\\s<]+)#', '<span class="footnote_url_wrap">$1</span>', $l_str_FootnoteText );
}
// Text to be displayed instead of the footnote

View file

@ -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;

View file

@ -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
*/

View file

@ -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)

View file

@ -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