From 6c090e9c6022b666ca9a3812c6f95105b169e260 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Fri, 29 Aug 2025 22:00:27 +0200 Subject: [PATCH 1/2] Fix plugin category. --- v7/wordpress_compiler/wordpress_compiler.plugin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v7/wordpress_compiler/wordpress_compiler.plugin b/v7/wordpress_compiler/wordpress_compiler.plugin index a23e60eb..e6c07c48 100644 --- a/v7/wordpress_compiler/wordpress_compiler.plugin +++ b/v7/wordpress_compiler/wordpress_compiler.plugin @@ -3,7 +3,7 @@ Name = wordpress Module = wordpress [Nikola] -PluginCategory = Compiler +PluginCategory = PageCompiler MinVersion = 7.6.1 [Documentation] From d9e7d1b5429d72036cfc4c2d27a23bfde632cfc0 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Fri, 29 Aug 2025 22:01:02 +0200 Subject: [PATCH 2/2] Avoid problematic regular expression. --- v7/wordpress_compiler/wordpress/default_filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v7/wordpress_compiler/wordpress/default_filters.py b/v7/wordpress_compiler/wordpress/default_filters.py index c335b70c..26440032 100644 --- a/v7/wordpress_compiler/wordpress/default_filters.py +++ b/v7/wordpress_compiler/wordpress/default_filters.py @@ -103,7 +103,7 @@ def __wptexturize_setup(self): # used on the right-hand side. Since Python throws an exception in that case, while PHP simply treats \2 as an empty string, # I had to remove the "+'\\2'" after opening_quote. if '"' != closing_quote: - dynamic.append((r'"(\s|\S|\Z)', closing_quote + '\\1')) # closing double quote + dynamic.append((r'"', closing_quote)) # closing double quote if "'" != closing_single_quote: dynamic.append((r'\'([\s.]|\Z)', closing_single_quote + '\\1')) # closing single quote