Comments: Rename WP_Comments_List_Table::comment_status_dropdown() to ::comment_type_dropdown().

This better reflects the purpose of the method, which doesn't have anything to do with a comment status.

Follow-up to [48521].

Props davidbaumwald, johnbillion, SergeyBiryukov.
Fixes #51248.
Built from https://develop.svn.wordpress.org/trunk@48943


git-svn-id: http://core.svn.wordpress.org/trunk@48705 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-09-05 00:33:05 +00:00
parent dd03a5a156
commit e05edbcd53
2 changed files with 4 additions and 3 deletions

View File

@ -396,7 +396,7 @@ class WP_Comments_List_Table extends WP_List_Table {
if ( 'top' === $which ) {
ob_start();
$this->comment_status_dropdown( $comment_type );
$this->comment_type_dropdown( $comment_type );
/**
* Fires just before the Filter submit button for comment types.
@ -475,10 +475,11 @@ class WP_Comments_List_Table extends WP_List_Table {
* Displays a comment type drop-down for filtering on the Comments list table.
*
* @since 5.5.0
* @since 5.6.0 Renamed from `comment_status_dropdown()` to `comment_type_dropdown()`.
*
* @param string $comment_type The current comment type slug.
*/
protected function comment_status_dropdown( $comment_type ) {
protected function comment_type_dropdown( $comment_type ) {
/**
* Filters the comment types shown in the drop-down menu on the Comments list table.
*

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.6-alpha-48942';
$wp_version = '5.6-alpha-48943';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.