WordPress.org

Make WordPress Core

Ticket #10034: wordpress_wp_list_pages_add_filter_args.diff

File wordpress_wp_list_pages_add_filter_args.diff, 453 bytes (added by antonylesuisse, 6 years ago)
  • wp-includes/post-template.php

    diff -ur ../wordpress.orig/wp-includes/post-template.php ./wp-includes/post-template.php
    old new  
    629629                        $output .= '</ul></li>'; 
    630630        } 
    631631 
    632         $output = apply_filters('wp_list_pages', $output); 
     632        $output = apply_filters('wp_list_pages', $output, $r); 
    633633 
    634634        if ( $r['echo'] ) 
    635635                echo $output;