[wp-trac] [WordPress Trac] #20509: Theme idea - generic.php

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 22 00:55:32 UTC 2012


#20509: Theme idea - generic.php
-----------------------------+------------------------------
 Reporter:  johnjamesjacoby  |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Themes           |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  dev-feedback     |
-----------------------------+------------------------------

Comment (by scribu):

 I wonder if we could do a bit more with this. What I'm thinking of:

 {{{
 add_action( 'parse_request', function($wp) {
   if ( isset( $wp->query_vars['foo'] ) ) {
     $wp->is_generic_request = true;
   }
 }
 }}}

 This would skip running WP_Query and would load `generic.php`, making
 plugin dev's lives even easier.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20509#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list