Adds filter to Pages widget to allow extended configuration
|Reported by:||scompt||Owned by:|
|Component:||Widgets||Keywords:||widgets plugin needs-patch|
In a couple WordPress installs, I've wanted to use the Pages widget to display the page navigation in the sidebar, but only wanted to go down a certain depth. Unfortunately, the widget doesn't support that option of wp_list_pages, so I've either resorted to copying the code to my functions.php file and modifying it or installing one of the plugins that been developed to fill the need. Either way, it seems a bit heavy-handed for a simple "depth=1".
This patch adds a filter to the wp_widget_pages function. This is identical to the existing filter in the wp_widget_links function.