mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +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:
@@ -1320,7 +1320,8 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
* @param object $post Post being acted upon.
|
||||
* @param string $column_name Current column name.
|
||||
* @param string $primary Primary column name.
|
||||
* @return string Row actions output for posts.
|
||||
* @return string Row actions output for posts, or an empty string
|
||||
* if the current column is not the primary column.
|
||||
*/
|
||||
protected function handle_row_actions( $post, $column_name, $primary ) {
|
||||
if ( $primary !== $column_name ) {
|
||||
|
||||
Reference in New Issue
Block a user