Skip to content

Commit

Permalink
- Authors Profile not being created when "Enable Guest Author" is dis…
Browse files Browse the repository at this point in the history
…abled #1584
  • Loading branch information
ojopaul committed Dec 15, 2023
1 parent db0bf10 commit 6e7866a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/Classes/Author_Editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 6e7866a

Please sign in to comment.