Make WordPress Core


Ignore:
Timestamp:
01/11/2020 05:56:15 PM (5 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

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

    r46391 r47059  
    577577     * @param string     $column_name Current column name.
    578578     * @param string     $primary     Primary column name.
    579      * @return string|void Comment row actions output.
     579     * @return string Row actions output for comments. An empty string
     580     *                if the current column is not the primary column,
     581     *                or if the current user cannot edit the comment.
    580582     */
    581583    protected function handle_row_actions( $comment, $column_name, $primary ) {
     
    587589
    588590        if ( ! $this->user_can ) {
    589             return;
     591            return '';
    590592        }
    591593
Note: See TracChangeset for help on using the changeset viewer.