Skip to content

Commit abf236f

Browse files
committed
Posts, Post types: Apply KSES to post-by-email content.
Props voldemortensen, johnbillion, paulkevan, peterwilsoncc, xknown, dd32, audrasjb. git-svn-id: https://develop.svn.wordpress.org/trunk@54521 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 49da4af commit abf236f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/wp-mail.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@
6565
wp_die( __( 'There does not seem to be any new mail.' ) );
6666
}
6767

68+
// Always run as an unauthenticated user.
69+
wp_set_current_user( 0 );
70+
6871
for ( $i = 1; $i <= $count; $i++ ) {
6972

7073
$message = $pop3->get( $i );

0 commit comments

Comments
 (0)