Make WordPress Core


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

    r46441 r47059  
    667667     * @param string $column_name Current column name.
    668668     * @param string $primary     Primary column name.
    669      * @return string Row actions output.
     669     * @return string Row actions output for sites in Multisite, or an empty string
     670     *                if the current column is not the primary column.
    670671     */
    671672    protected function handle_row_actions( $blog, $column_name, $primary ) {
    672673        if ( $primary !== $column_name ) {
    673             return;
     674            return '';
    674675        }
    675676
     
    734735         */
    735736        $actions = apply_filters( 'manage_sites_action_links', array_filter( $actions ), $blog['blog_id'], $blogname );
     737
    736738        return $this->row_actions( $actions );
    737739    }
Note: See TracChangeset for help on using the changeset viewer.