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
This commit is contained in:
Adam Silverstein
2025-11-07 18:56:32 +00:00
parent 1fb16f461f
commit 060ffe8d40
2 changed files with 6 additions and 2 deletions

View File

@@ -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'] : '';

View File

@@ -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.