[wp-trac] [WordPress Trac] #8845: Adds filter to Pages widget to allow extended configuration

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 12 17:11:32 GMT 2009


#8845: Adds filter to Pages widget to allow extended configuration
-------------------------+--------------------------------------------------
 Reporter:  scompt       |       Owner:  anonymous     
     Type:  enhancement  |      Status:  new           
 Priority:  normal       |   Milestone:  2.7.1         
Component:  General      |     Version:  2.7           
 Severity:  minor        |    Keywords:  widgets plugin
-------------------------+--------------------------------------------------
 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.

 [http://groups.google.com/group/wp-
 hackers/browse_thread/thread/d2401fcbe1347e8c wp-hackers discussion]

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8845>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list