From 969ed1aaf9cdf1039b2d3c8f9ddfcff8aa01d398 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Mon, 17 Oct 2022 11:22:11 +0000 Subject: [PATCH] Pings/trackbacks: Apply KSES to all trackbacks. Props dd32, xknown, martinkrcho, peterwilsoncc. Built from https://develop.svn.wordpress.org/trunk@54525 git-svn-id: http://core.svn.wordpress.org/trunk@54080 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- wp-trackback.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index 0d46e665f8..c002a08019 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-RC1-54524'; +$wp_version = '6.1-RC1-54525'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-trackback.php b/wp-trackback.php index f78cd5e095..c357e3193e 100644 --- a/wp-trackback.php +++ b/wp-trackback.php @@ -13,6 +13,9 @@ if ( empty( $wp ) ) { wp( array( 'tb' => '1' ) ); } +// Always run as an unauthenticated user. +wp_set_current_user( 0 ); + /** * Response to a trackback. *