Skip to content

Commit

Permalink
Merge pull request #1585 from publishpress/feature/dev-hotfix-1584
Browse files Browse the repository at this point in the history
- Authors Profile not being created when "Enable Guest Author" is disabled #1584
  • Loading branch information
ojopaul authored Dec 15, 2023
2 parents db0bf10 + 6e7866a commit e95a468
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 e95a468

Please sign in to comment.