[wp-trac] [WordPress Trac] #10034: wp_list_pages(): pass args $r to
apply_filters()
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 4 12:22:11 GMT 2009
#10034: wp_list_pages(): pass args $r to apply_filters()
----------------------------+-----------------------------------------------
Reporter: antonylesuisse | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Unassigned
Component: General | Version:
Severity: normal | Keywords:
----------------------------+-----------------------------------------------
{{{
A one line fix:
- $output = apply_filters('wp_list_pages', $output);
+ $output = apply_filters('wp_list_pages', $output, $r);
It would allow filters to test clauses such as 'child_of==0'.
I currently use the following hack in the filter function:
$bt=debug_backtrace();
$r=$bt[3]["args"][0];
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10034>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list