Skip to content

Commit

Permalink
Fix setting of wordpress_page_compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwpolska committed Apr 29, 2024
1 parent 21bfeb6 commit 2090eb6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nikola/plugins/command/import_wordpress.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,9 @@ def _find_wordpress_compiler(self):
new_plugins = self.site.plugin_manager.load_plugins(wordpress_candidates)
for p in new_plugins:
self.site._activate_plugin(p)
self.wordpress_page_compiler = p
self.wordpress_page_compiler = p.plugin_object
else:
self.wordpress_page_compiler = plugin_info.plugin_object

def _read_options(self, options, args):
"""Read command-line options."""
Expand Down

0 comments on commit 2090eb6

Please sign in to comment.