mirror of
git://develop.git.wordpress.org/
synced 2025-04-05 12:42:35 +02:00
Posts, Post types: Remove emails from post-by-email logs.
Props paulkevan, xknown, martinkrcho, peterwilsoncc. Merges [54523] to the 6.0 branch. git-svn-id: https://develop.svn.wordpress.org/branches/6.0@54533 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
419de4780c
commit
c26c02700d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user