BUG: class-wp-list-table.php on line 140
-
/home2/writinl4/public_html/angeltrivia/wp-admin/includes/class-wp-list-table.php on line 140
the if statement referenced is:
if ( !$args['total_pages'] && $args['per_page'] > 0 ) { $args['total_pages'] = ceil( $args['total_items'] / $args['per_page'] ); }
I checked the variables, and they were set as so:
$args['total_pages'] = 0 $args['per_page'] = 20 $args['total_items'] = ( array of items )
Uh.. can’t divide an array!
So I changed the if calculation to:
if ( !$args['total_pages'] && $args['per_page'] > 0 ) { $args['total_pages'] = ceil( count( $args['total_items'] ) / $args['per_page'] ); }
and it works…
Not… sure where to post this bug…. so here it is for others.
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘BUG: class-wp-list-table.php on line 140’ is closed to new replies.