Make WordPress Core

Ticket #49170: 49170.diff

File 49170.diff, 1.3 KB (added by pbiron, 6 years ago)
  • src/wp-admin/includes/class-wp-list-table.php

    From 8e9d235218459ff7eda5d0718d42a08a07149d4b Mon Sep 17 00:00:00 2001
    From: Paul Biron <paul@sparrowhawkcomputing.com>
    Date: Sat, 11 Jan 2020 09:13:17 -0700
    Subject: [PATCH] Correct description of return value in DocBlock of
     WP_List_Table::handle_row_actions().
    
    ---
     src/wp-admin/includes/class-wp-list-table.php | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/wp-admin/includes/class-wp-list-table.php b/src/wp-admin/includes/class-wp-list-table.php
    index 7ddef7fc03..9ecc6659e8 100644
    a b class WP_List_Table { 
    13731373         * @param object $item        The item being acted upon.
    13741374         * @param string $column_name Current column name.
    13751375         * @param string $primary     Primary column name.
    1376          * @return string The row actions HTML, or an empty string if the current column is the primary column.
     1376         * @return string The row actions HTML, or an empty string if the current column is not the primary column.
    13771377         */
    13781378        protected function handle_row_actions( $item, $column_name, $primary ) {
    13791379                return $column_name === $primary ? '<button type="button" class="toggle-row"><span class="screen-reader-text">' . __( 'Show more details' ) . '</span></button>' : '';