diff options
author | Sergey Biryukov <sergeybiryukov@git.wordpress.org> | 2022-10-17 18:10:19 +0000 |
---|---|---|
committer | Sergey Biryukov <sergeybiryukov@git.wordpress.org> | 2022-10-17 18:10:19 +0000 |
commit | 4b9e2542644c11d613636e43c0eb67142e5c82f9 (patch) | |
tree | 9bed75791e5c5d1f26c7637f2cb163d2960cfab0 /src/wp-trackback.php | |
parent | 0d8b08ce013a35ed4ef203a03edeb7a51ac66dc5 (diff) | |
download | wordpress-4b9e2542644c11d613636e43c0eb67142e5c82f9.tar.gz wordpress-4b9e2542644c11d613636e43c0eb67142e5c82f9.zip |
Grouped backports to the 4.8 branch.
- Posts, Post types: Apply KSES to post-by-email content,
- General: Validate host on "Are you sure?" screen,
- Posts, Post types: Remove emails from post-by-email logs,
- Media: Refactor search by filename within the admin,
- Pings/trackbacks: Apply KSES to all trackbacks,
- Comments: Apply kses when editing comments,
- Customize: Escape blogname option in underscores templates,
- REST API: Lockdown post parameter of the terms endpoint,
- Mail: Reset PHPMailer properties between use,
- Query: Validate relation in `WP_Date_Query`,
- Widgets: Escape RSS error messages for display.
Merges [54521], [54522], [54523], [54524], [54525], [54526], [54527], [54528], [54529], [54530], [54541] to the 4.8 branch.
Props voldemortensen, johnbillion, paulkevan, peterwilsoncc, xknown, dd32, audrasjb, martinkrcho, vortfu, davidbaumwald, tykoted, timothyblynjacobs, johnjamesjacoby, ehtis, matveb, talldanwp.
git-svn-id: https://develop.svn.wordpress.org/branches/4.8@54568 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'src/wp-trackback.php')
-rw-r--r-- | src/wp-trackback.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wp-trackback.php b/src/wp-trackback.php index 86e17b965d..7250859cc9 100644 --- a/src/wp-trackback.php +++ b/src/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. * |