Ticket #18762: fix_reverse_order_pagination.diff
File fix_reverse_order_pagination.diff, 895 bytes (added by , 13 years ago) |
---|
-
class-wp-walker.php
292 292 if ( !empty($args[0]['reverse_top_level']) ) { 293 293 $elements = array_reverse( $elements ); 294 294 $oldstart = $start; 295 $end = $total_top - $oldstart; 295 296 $start = $total_top - $end; 296 $end = $total_top - $oldstart;297 297 } 298 298 299 299 $empty_array = array(); … … 331 331 if ( !empty($args[0]['reverse_top_level']) ) { 332 332 $top_level_elements = array_reverse( $top_level_elements ); 333 333 $oldstart = $start; 334 $end = $total_top - $oldstart; 334 335 $start = $total_top - $end; 335 $end = $total_top - $oldstart;336 336 } 337 337 if ( !empty($args[0]['reverse_children']) ) { 338 338 foreach ( $children_elements as $parent => $children ) … … 396 396 } 397 397 } 398 398 399 ?> 400 No newline at end of file 399 ?>