From 6e7866a432ce6366bc25421176b99d11507c35e0 Mon Sep 17 00:00:00 2001 From: ojopaul Date: Fri, 15 Dec 2023 15:44:28 +0100 Subject: [PATCH] - Authors Profile not being created when "Enable Guest Author" is disabled #1584 --- src/core/Classes/Author_Editor.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/Classes/Author_Editor.php b/src/core/Classes/Author_Editor.php index d35348f4..641230f7 100644 --- a/src/core/Classes/Author_Editor.php +++ b/src/core/Classes/Author_Editor.php @@ -830,7 +830,8 @@ public static function admin_notices() */ public static function filter_pre_insert_term($term, $taxonomy) { - if ($taxonomy === 'author' && !empty($_POST)) { + if ($taxonomy === 'author' && !empty($_POST['action']) && $_POST['action'] === 'add-tag') { + $legacyPlugin = Factory::getLegacyPlugin(); $author_id = (int)$_POST['authors-new']; $enable_guest_author_user = $legacyPlugin->modules->multiple_authors->options->enable_guest_author_user === 'yes';