Changeset 2867112
- Timestamp:
- 02/17/2023 05:35:25 PM (3 years ago)
- Location:
- modern-footnotes
- Files:
-
- 16 added
- 2 edited
-
tags/1.4.15 (added)
-
tags/1.4.15/license.txt (added)
-
tags/1.4.15/mce-button.png (added)
-
tags/1.4.15/modern-footnotes.block-editor.js (added)
-
tags/1.4.15/modern-footnotes.block-editor.min.js (added)
-
tags/1.4.15/modern-footnotes.js (added)
-
tags/1.4.15/modern-footnotes.mce-button.js (added)
-
tags/1.4.15/modern-footnotes.mce-button.min.js (added)
-
tags/1.4.15/modern-footnotes.min.js (added)
-
tags/1.4.15/modern-footnotes.php (added)
-
tags/1.4.15/readme.txt (added)
-
tags/1.4.15/styles.block-editor-button.min.css (added)
-
tags/1.4.15/styles.css (added)
-
tags/1.4.15/styles.mce-button.css (added)
-
tags/1.4.15/styles.mce-button.min.css (added)
-
tags/1.4.15/styles.min.css (added)
-
trunk/modern-footnotes.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
modern-footnotes/trunk/modern-footnotes.php
r2859760 r2867112 5 5 Text Domain: modern-footnotes 6 6 Description: Add inline footnotes to your post via the footnote icon on the toolbar for editing posts and pages. Or, use the [mfn] or [modern_footnote] shortcodes [mfn]like this[/mfn]. 7 Version: 1.4.1 47 Version: 1.4.15 8 8 Author: Prism Tech Studios 9 9 Author URI: http://prismtechstudios.com/ … … 15 15 defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); 16 16 17 $modern_footnotes_version = '1.4.1 4';17 $modern_footnotes_version = '1.4.15'; 18 18 19 19 $modern_footnotes_options = get_option('modern_footnotes_settings'); … … 198 198 } 199 199 200 //create a unique ID to use in HTML 201 $content_id = "mfn-content-" . $scope_id . '-' . preg_replace('/[^a-zA-Z0-9-_]/i', '', $display_number); 202 200 203 if (isset($atts['for_rss_feed']) && $atts['for_rss_feed']) { 201 204 $content = '<sup class="modern-footnotes-footnote ' . $additional_classes . '">' . $display_number . '</sup>'; // only display the superscript for RSS feeds 202 205 } else { 203 206 $content = '<sup class="modern-footnotes-footnote ' . $additional_classes . '" data-mfn="' . str_replace('"',"\\\"", $display_number) . '" data-mfn-post-scope="' . $scope_id . '">' . 204 '<a href="javascript:void(0)" ' . $additional_attributes . ' role="button" aria-pressed="false" aria-describedby=" mfn-content-' . $scope_id . '">' . $display_number . '</a>' .207 '<a href="javascript:void(0)" ' . $additional_attributes . ' role="button" aria-pressed="false" aria-describedby="' . $content_id . '">' . $display_number . '</a>' . 205 208 '</sup>' . 206 '<span id=" mfn-content-' . $scope_id . '" role="tooltip" class="modern-footnotes-footnote__note" tabindex="0" data-mfn="' . str_replace('"',"\\\"", $display_number) . '">' . $content . '</span>'; //use a block element, not an inline element: otherwise, footnotes with line breaks won't display correctly209 '<span id="' . $content_id . '" role="tooltip" class="modern-footnotes-footnote__note" tabindex="0" data-mfn="' . str_replace('"',"\\\"", $display_number) . '">' . $content . '</span>'; //use a block element, not an inline element: otherwise, footnotes with line breaks won't display correctly 207 210 } 208 211 -
modern-footnotes/trunk/readme.txt
r2859760 r2867112 4 4 Requires at least: 4.6 5 5 Tested up to: 6.1.1 6 Stable tag: 1.4.1 46 Stable tag: 1.4.15 7 7 License: GNU General Public License v2 8 8 License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html … … 84 84 == Changelog == 85 85 86 = 1.4.15 = 87 * Fix for duplicate HTML ids 88 86 89 = 1.4.14 = 87 90 * Minor fix for a PHP warning where foreach was attempting to access a null object
Note: See TracChangeset
for help on using the changeset viewer.