[wp-trac] [WordPress Trac] #20509: Theme idea - generic.php
WordPress Trac
wp-trac at lists.automattic.com
Wed Apr 25 15:20:25 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: needs-patch dev-feedback |
--------------------------------------+------------------------------
Comment (by johnbillion):
Attached is a first pass at a patch and a test plugin.
If you visit `example.com/?foo=1` then the generic request template will
be located and loaded, and the plugin will output 'Hello world!'.
If your theme contains a `generic.php` template file (see the earlier
attached `generic.php` from jjj) then this will be used. If not, then the
plugin's bundled `template/generic.php` will be used instead.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20509#comment:34>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list