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:
@@ -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'] : '';
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user