Skip to content

Commit

Permalink
Test if a wp_footer filter avoids warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
leedxw committed Jan 2, 2025
1 parent 788cabd commit 48db780
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/entry-meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
$check_user = get_user_by('id', $check_author_id);
if (empty($check_user->user_login)) {
error_log("author of post {$post->ID} is deleted user $check_author_id", 0);
add_filter('wp_insert_post_data', 'set_archive_author', 99, 2);
//add_filter('wp_insert_post_data', 'set_archive_author', 99, 2);
//wp_update_post($post);
add_filter('wp_footer', 'set_archive_author', 99, 2);
}
}

Expand Down

0 comments on commit 48db780

Please sign in to comment.