mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-13 06:07:23 +01:00
Posts, Post types: Remove emails from post-by-email logs.
Props paulkevan, xknown, martinkrcho, peterwilsoncc. Merges [54523] to the 6.0 branch. Built from https://develop.svn.wordpress.org/branches/6.0@54533 git-svn-id: http://core.svn.wordpress.org/branches/6.0@54088 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
84c1c0c7da
commit
4167f814bc
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.0.3-alpha-54532';
|
||||
$wp_version = '6.0.3-alpha-54533';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
@ -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…
Reference in New Issue
Block a user