Make WordPress Core


Ignore:
Timestamp:
11/07/2025 06:54:51 PM (9 months ago)
Author:
adamsilverstein
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-comments-list-table.php

    r61105 r61183  
    100100                }
    101101
    102                 $comment_type = ! empty( $_REQUEST['comment_type'] ) ? $_REQUEST['comment_type'] : '';
     102                $comment_type = '';
     103
     104                if ( ! empty( $_REQUEST['comment_type'] ) && 'note' !== $_REQUEST['comment_type'] ) {
     105                        $comment_type = $_REQUEST['comment_type'];
     106                }
    103107
    104108                $search = ( isset( $_REQUEST['s'] ) ) ? $_REQUEST['s'] : '';
Note: See TracChangeset for help on using the changeset viewer.