From 5144b41546bfca69e6bffdcc28436417c37a4409 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Mon, 17 Oct 2022 11:02:17 +0000 Subject: [PATCH] Posts, Post types: Apply KSES to post-by-email content. Props voldemortensen, johnbillion, paulkevan, peterwilsoncc, xknown, dd32, audrasjb. Built from https://develop.svn.wordpress.org/trunk@54521 git-svn-id: http://core.svn.wordpress.org/trunk@54076 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- wp-mail.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index 2115a59857..ad0e1dc535 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-RC1-54520'; +$wp_version = '6.1-RC1-54521'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-mail.php b/wp-mail.php index d3a86352f2..794598d379 100644 --- a/wp-mail.php +++ b/wp-mail.php @@ -65,6 +65,9 @@ if ( 0 === $count ) { wp_die( __( 'There does not seem to be any new mail.' ) ); } +// Always run as an unauthenticated user. +wp_set_current_user( 0 ); + for ( $i = 1; $i <= $count; $i++ ) { $message = $pop3->get( $i );