Changes between Initial Version and Version 1 of Ticket #42327, comment 1
- Timestamp:
- 10/24/2017 10:26:10 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #42327, comment 1
initial v1 3 3 This 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. 4 4 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: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 in this case, which is then passed as the `total_items` for the pagination args: 6 6 7 7 `Fatal error: Unsupported operand types in /wp-admin/includes/class-wp-list-table.php on line 284`