[wp-trac] Re: [WordPress Trac] #7247: add parent arg to get_pages()
WordPress Trac
wp-trac at lists.automattic.com
Sat Sep 13 09:13:07 GMT 2008
#7247: add parent arg to get_pages()
-------------------------------------+--------------------------------------
Reporter: DD32 | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.7
Component: Template | Version: 2.6
Severity: normal | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+--------------------------------------
Changes (by DD32):
* type: defect => enhancement
* component: Optimization => Template
* summary: get_pages specific use case optimization => add parent arg to
get_pages()
Comment:
Patch attached implements the 'parent' arg. This is useful in themes where
a Menu may want to include the Subpages of a page, but wishes to prevent
the retrieval of *every* page in order to do so.
Eg: Http://dd32.id.au/ the top menu (Home | Blog | Contact me, etc) are
pages which are subpages of 'Frontpage holder', There is no particular
reason to retrieve all the plugin pages for that page listing.
--
Ticket URL: <http://trac.wordpress.org/ticket/7247#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list