Docs: Synchronize @return descriptions for ::handle_row_actions() methods in list tables.

Make sure `WP_Comments_List_Table::handle_row_actions()` and `WP_MS_Sites_List_Table::handle_row_actions()` return a string, for consistency with other classes.

See #49170, #48303.

git-svn-id: https://develop.svn.wordpress.org/trunk@47059 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2020-01-11 17:56:15 +00:00
parent 1824604fc0
commit f9e52f8cd3
7 changed files with 20 additions and 9 deletions
@@ -576,7 +576,9 @@ class WP_Comments_List_Table extends WP_List_Table {
* @param WP_Comment $comment The comment object.
* @param string $column_name Current column name.
* @param string $primary Primary column name.
* @return string|void Comment row actions output.
* @return string Row actions output for comments. An empty string
* if the current column is not the primary column,
* or if the current user cannot edit the comment.
*/
protected function handle_row_actions( $comment, $column_name, $primary ) {
global $comment_status;
@@ -586,7 +588,7 @@ class WP_Comments_List_Table extends WP_List_Table {
}
if ( ! $this->user_can ) {
return;
return '';
}
$the_comment_status = wp_get_comment_status( $comment );