[wp-trac] [WordPress Trac] #18265: Use load_template in template-loader.php
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 27 12:16:14 UTC 2011
#18265: Use load_template in template-loader.php
-------------------------+-----------------------
Reporter: elyobo | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone:
Component: Template | Version:
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+-----------------------
Comment (by nacin):
A better WP implementation would have been bbPress's version of
load_template():
`function bb_load_template( $files, $globals = false ... );`
Pretty nifty, allows things like this:
`bb_load_template( 'login.php', array( 'user_exists', 'user_login',
'remember_checked', 'redirect_to', 're', 'bb_login_error' ) );`
The bbPress code is full of code like this -- WordPress-inspired, but
improved in the slightest of ways.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18265#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list