Posts, Post types: Remove emails from post-by-email logs.

Props paulkevan, xknown, martinkrcho, peterwilsoncc.


git-svn-id: https://develop.svn.wordpress.org/trunk@54523 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras 2022-10-17 11:04:30 +00:00
parent 506eee1259
commit 5fcdee1b4d

View File

@ -137,8 +137,6 @@ for ( $i = 1; $i <= $count; $i++ ) {
}
$author = sanitize_email( $author );
if ( is_email( $author ) ) {
/* translators: %s: Post author email address. */
echo '<p>' . sprintf( __( 'Author is %s' ), $author ) . '</p>';
$userdata = get_user_by( 'email', $author );
if ( ! empty( $userdata ) ) {
$post_author = $userdata->ID;