Make WordPress Core


Ignore:
Timestamp:
01/11/2020 05:56:15 PM (2 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-ms-users-list-table.php

    r46596 r47059  
    489489     * @param string $column_name Current column name.
    490490     * @param string $primary     Primary column name.
    491      * @return string Row actions output for users in Multisite.
     491     * @return string Row actions output for users in Multisite, or an empty string
     492     *                if the current column is not the primary column.
    492493     */
    493494    protected function handle_row_actions( $user, $column_name, $primary ) {
     
    518519         */
    519520        $actions = apply_filters( 'ms_user_row_actions', $actions, $user );
     521
    520522        return $this->row_actions( $actions );
    521523    }
Note: See TracChangeset for help on using the changeset viewer.