From 3aa88229e06e67933c4e639d8854c2c1b9887166 Mon Sep 17 00:00:00 2001 From: pewgeuges Date: Wed, 31 Mar 2021 13:29:10 +0000 Subject: [PATCH] Bugfix 2.6.4 stable Tag 2.6.4. = 2.6.4 = - Bugfix: Process: remove trailing comma after last argument in multiline function calls for PHP < 7.3, thanks to @scroom bug report. git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2506751 b8457f37-d9ea-0310-8a92-e5e31aec5664 --- class/task.php | 6 +++--- footnotes.php | 8 ++++---- js/wysiwyg-editor.js | 2 +- readme.txt | 11 +++++++---- 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/class/task.php b/class/task.php index 792372f..7bcf525 100644 --- a/class/task.php +++ b/class/task.php @@ -1223,7 +1223,7 @@ class MCI_Footnotes_Task { preg_match_all( '#' . self::$a_str_start_tag_regex . '.+?' . self::$a_str_end_tag_regex . '#', $p_str_content, - $p_arr_saved_footnotes, + $p_arr_saved_footnotes ); // Prevent the footnotes from altering the excerpt: previously hard-coded '5ED84D6'. @@ -1231,7 +1231,7 @@ class MCI_Footnotes_Task { $p_str_content = preg_replace( '#' . self::$a_str_start_tag_regex . '.+?' . self::$a_str_end_tag_regex . '#', $l_int_placeholder, - $p_str_content, + $p_str_content ); // Replace line breaking markup with a separator. @@ -1275,7 +1275,7 @@ class MCI_Footnotes_Task { '#' . $l_int_placeholder . '#', $p_arr_saved_footnotes[0][ $l_int_index ], $p_str_content, - 1, + 1 ); $l_int_index++; } diff --git a/footnotes.php b/footnotes.php index 50b0d07..db23bdb 100755 --- a/footnotes.php +++ b/footnotes.php @@ -4,8 +4,8 @@ * 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 - * Package V.: 2.6.3 - * Version: 2.6.3 + * Package V.: 2.6.4 + * Version: 2.6.4 * CAUTION: THIS V. FIELD IS PARSED FOR UPDATE CONFIGURATION. * Author URI: https://cheret.org/footnotes/ * Text Domain: footnotes @@ -21,9 +21,9 @@ * @since 2.1.4 * @since 2.5.3 (Hungarian) * @var str - * @lastmodified 2021-03-30T1135+0200 + * @lastmodified 2021-03-31T1525+0200 */ -define( 'C_STR_PACKAGE_VERSION', '2.6.3' ); +define( 'C_STR_PACKAGE_VERSION', '2.6.4' ); /** * Enables toggling the stylesheet enqueuing mode from production (true) to development (false). * @see Full docblock below next. diff --git a/js/wysiwyg-editor.js b/js/wysiwyg-editor.js index 7b61178..612e0a5 100644 --- a/js/wysiwyg-editor.js +++ b/js/wysiwyg-editor.js @@ -69,7 +69,7 @@ author : 'Mark Cheret', authorurl : 'https://cheret.org/footnotes/', infourl : 'https://wordpress.org/plugins/footnotes/', - version : "2.6.3" + version : "2.6.4" }; } }); diff --git a/readme.txt b/readme.txt index ab0f335..49b0ba2 100755 --- a/readme.txt +++ b/readme.txt @@ -4,9 +4,9 @@ Tags: footnote, footnotes, bibliography, formatting, notes, Post, posts, referen Requires at least: 3.9 Tested up to: 5.7 Requires PHP: 5.6 -Package Version: 2.6.3 -Version: 2.6.3 -Stable Tag: 2.6.3 +Package Version: 2.6.4 +Version: 2.6.4 +Stable Tag: 2.6.4 CAUTION: THE S. T. FIELD IS PARSED FOR RELEASE CONFIGURATION. License: GPLv3 or later License URI: https://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.6.4 = +- Bugfix: Process: remove trailing comma after last argument in multiline function calls for PHP < 7.3, thanks to @scroom bug report. + = 2.6.3 = - Bugfix: Reference container: debug footnotes number text color in the table header cells required for accessibility, thanks to @spaceling bug report. - Bugfix: Excerpts: debug the 'Yes' option by generating excerpts with footnotes on the basis of the posts, thanks to @nikelaos @martinneumannat bug reports. @@ -92,7 +95,7 @@ Visit this swift write-up from a **footnotes** user by the name of **Southwest** - Bugfix: Tooltips: Continue reading: debug link for AMP compatibility mode. = 2.6.1 = -- Bugfix: Tooltips: Styling: Font color: set to black for maximum contrast with respect to white default background, thanks to 4msc bug report. +- Bugfix: Tooltips: Styling: Font color: set default value to black for maximum contrast on default white background color, thanks to 4msc bug report. - Bugfix: Tooltips: Styling: Background color: set default value back to white because empty doesn’t work out as expected. = 2.6.0 =