From 060ffe8d4093bf11063dfc02a67f6509c67e31e5 Mon Sep 17 00:00:00 2001 From: Adam Silverstein Date: Fri, 7 Nov 2025 18:56:32 +0000 Subject: [PATCH] Comments: ensure notes never show on the comments page. Fix an issue where adding comment_type=note as a query parameter to the wp-admin/edit-comments.php page would unexpectedly cause notes to show. Notes are different from comments - prevent them from showing on the comment list table. Props adamsilverstein, desros, soyebsalar01j. Fixes #64198. Built from https://develop.svn.wordpress.org/trunk@61183 git-svn-id: http://core.svn.wordpress.org/trunk@60519 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-comments-list-table.php | 6 +++++- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-comments-list-table.php b/wp-admin/includes/class-wp-comments-list-table.php index c4d323cf89..29343f78a0 100644 --- a/wp-admin/includes/class-wp-comments-list-table.php +++ b/wp-admin/includes/class-wp-comments-list-table.php @@ -99,7 +99,11 @@ class WP_Comments_List_Table extends WP_List_Table { $comment_status = 'all'; } - $comment_type = ! empty( $_REQUEST['comment_type'] ) ? $_REQUEST['comment_type'] : ''; + $comment_type = ''; + + if ( ! empty( $_REQUEST['comment_type'] ) && 'note' !== $_REQUEST['comment_type'] ) { + $comment_type = $_REQUEST['comment_type']; + } $search = ( isset( $_REQUEST['s'] ) ) ? $_REQUEST['s'] : ''; diff --git a/wp-includes/version.php b/wp-includes/version.php index 8d45e32592..5bf794d43b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.9-beta4-61182'; +$wp_version = '6.9-beta4-61183'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.