Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #42327, comment 1


Ignore:
Timestamp:
10/24/2017 10:26:10 PM (6 years ago)
Author:
xParham
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #42327, comment 1

    initial v1  
    33This in particular for me, is causing a fatal error on the `edit-tags.php` screen, when a filter that I have on the main query for the terms list sets the `parent` parameter to one with no descendants.
    44
    5 Having an array returned instead of 0 will make the `WP_List_Table::set_pagination_args()` to fail because the pagination args set in `WP_Terms_List_Table::prepare_items()` uses `wp_count_terms()` which returns an array instead of integer which is then passed as the `total_items` for the pagination args:
     5Having an array returned instead of 0 will make the `WP_List_Table::set_pagination_args()` to fail because the pagination args set in `WP_Terms_List_Table::prepare_items()` uses `wp_count_terms()` which returns an array instead of integer in this case, which is then passed as the `total_items` for the pagination args:
    66
    77`Fatal error: Unsupported operand types in /wp-admin/includes/class-wp-list-table.php on line 284`