mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user