Changeset 2927096
- Timestamp:
- 06/16/2023 02:19:31 PM (3 years ago)
- Location:
- polylang-supertext/trunk
- Files:
-
- 3 edited
-
plugin.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
src/Supertext/Helper/TextProcessor.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
polylang-supertext/trunk/plugin.php
r2921539 r2927096 7 7 Domain Path: /resources/languages 8 8 Author: Supertext AG 9 Version: 4.1 89 Version: 4.19 10 10 Author URI: http://www.supertext.ch 11 11 License: GPLv2 or later 12 12 */ 13 13 14 define('SUPERTEXT_PLUGIN_VERSION', '4.1 8');14 define('SUPERTEXT_PLUGIN_VERSION', '4.19'); 15 15 define('SUPERTEXT_PLUGIN_REVISION', 48); 16 16 define('SUPERTEXT_BASE_PATH', __DIR__); -
polylang-supertext/trunk/readme.txt
r2921539 r2927096 109 109 110 110 == Changelog == 111 = 4.19 = 112 * Exclude shortcode replacement in html comments 111 113 112 114 = 4.18 = -
polylang-supertext/trunk/src/Supertext/Helper/TextProcessor.php
r2857633 r2927096 116 116 117 117 /** 118 * Returns positions in the content where shortcodes should not be replaced. In this case the positions of Gutenberg block attributes .118 * Returns positions in the content where shortcodes should not be replaced. In this case the positions of Gutenberg block attributes or shortcodes in comments. 119 119 */ 120 120 private function getExcludedPositions($content) … … 122 122 $excludedPositions = array(); 123 123 124 if (preg_match_all('/<!-- wp:.*-->/', $content, $matches, PREG_OFFSET_CAPTURE)) {124 if (preg_match_all('/<!-- (wp:.*)|(\[[^\]]+\]([^\[]+\[[^\]]+\])?)(\s+)?-->/', $content, $matches, PREG_OFFSET_CAPTURE)) { 125 125 foreach ($matches[0] as $match) { 126 126 $excludedPositions[] = array('start' => $match[1], 'end' => $match[1] + strlen($match[0]));
Note: See TracChangeset
for help on using the changeset viewer.