Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #58789


Ignore:
Timestamp:
10/30/2023 07:20:10 PM (21 months ago)
Author:
sabernhardt
Comment:

I think the problem might come from the user_row_actions filter returning false or an empty string, and then the $actions variable would be set but uncountable. Maybe row_actions() could check is_countable instead.

$action_count = is_countable( $actions ) ? count( $actions ) : 0;

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58789

    • Property Keywords needs-patch added
    • Property Component changed from General to Administration
  • Ticket #58789 – Description

    initial v1  
    11Commonly getting not countable for the users lists, across many sites not sure of the source of the issue, but easy solution seems to be to modify.
    22
    3 /wp-admin/includes/class-wp-list-table.php
     3`/wp-admin/includes/class-wp-list-table.php`
    44
     5{{{
    56protected function row_actions( $actions, $always_visible = false )
    67++ if(!isset($actions)) { return ''; }
     
    1011return '';
    1112}
    12 
    13 
    14 
    15 
    16 
     13}}}