Opened 16 years ago
Closed 16 years ago
#8845 closed enhancement (duplicate)
Adds filter to Pages widget to allow extended configuration
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | 2.7 |
Component: | Widgets | Keywords: | widgets plugin needs-patch |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (8)
#2
@
16 years ago
- Cc jeremyclarke added
- Keywords tested added
+1
I like the idea and tested teh patch and it works fine. The filter name is ugly but matches the widgets_links_args one.
#5
@
16 years ago
- Keywords needs-patch added; has-patch tested removed
Patch needs refresh. Widgets moved to default-widgets.php.
adds filter to wp_widget_pages function