Commit Graph

22 Commits

Author SHA1 Message Date
Mark Jaquith
2dc29f9587 Clean up [22347] a bit. see #14348
git-svn-id: https://develop.svn.wordpress.org/trunk@22353 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-31 23:01:13 +00:00
Mark Jaquith
921c060e18 When receiving a HEAD request, die() right before we start outputting content.
* Content doesn't make sense for HEAD requests
* Saves wear and tear on the server
* Introduces a filter: exit_on_http_head (we send TRUE through it)

fixes #14348. props mbijon, mitchoyoshitaka.

git-svn-id: https://develop.svn.wordpress.org/trunk@22347 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-31 21:39:23 +00:00
Ryan Boren
2b186b0c45 Lose EOF ?>. Clean up EOF newlines. fixes #12307
git-svn-id: https://develop.svn.wordpress.org/trunk@19712 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 17:01:11 +00:00
Peter Westwood
6d490bcd88 Introduce a template file for the Front Page of a site. Has priority over every other template which applies and falls back to the standard template flow for the page / list of posts.
Fixes #6801

git-svn-id: https://develop.svn.wordpress.org/trunk@14276 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-28 07:48:09 +00:00
Andrew Nacin
28f8063d1f Introduce get_index_template(). Allows child themes to override a parent theme's index.php. Props koopersmith, fixes #12635
git-svn-id: https://develop.svn.wordpress.org/trunk@13819 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-26 13:52:43 +00:00
Ryan Boren
f24e88359e Trim trailing whites
git-svn-id: https://develop.svn.wordpress.org/trunk@13268 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-21 00:03:42 +00:00
Andrew Nacin
e7c02e7e53 Add template_include filter, to modify the template path before it is included. Fixes #11242
git-svn-id: https://develop.svn.wordpress.org/trunk@13252 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-20 12:58:25 +00:00
Andrew Nacin
4d2c75d785 Assume WP_DEBUG is defined in wpdb. Remove unnecessary constant() calls. Ensure DB_COLLATE defined as empty string doesn't override default Multisite collation. fixes #12041, see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@13209 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-19 01:03:58 +00:00
Matt Mullenweg
e0ebaaceed For some reason taxonomy pages also return is_home, so we need to put this check first.
git-svn-id: https://develop.svn.wordpress.org/trunk@7754 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-21 06:28:50 +00:00
Ryan Boren
cbfb5d78b5 Taxonomy queries and urls. Props andy. see #6357
git-svn-id: https://develop.svn.wordpress.org/trunk@7491 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-23 17:02:11 +00:00
Peter Westwood
6ee634e61f Add file level documentation for template-loader.php. Fixes #5513 props darkdragon.
git-svn-id: https://develop.svn.wordpress.org/trunk@6483 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-24 07:09:36 +00:00
Mark Jaquith
593eca6f21 ABSPATH already has a trailing slash. Props Nazgul. fixes #4607
git-svn-id: https://develop.svn.wordpress.org/trunk@5820 602fd350-edb4-49c9-b593-d223f7449a82
2007-07-27 21:28:01 +00:00
Matt Mullenweg
570a74e818 All the query stuff we need for tag= URLs to work.
git-svn-id: https://develop.svn.wordpress.org/trunk@5149 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-31 06:16:12 +00:00
Ryan Boren
7d8f8b40f2 Return instead of exit in template-loader. Props Otto42 and Nazgul. fixes #3790
git-svn-id: https://develop.svn.wordpress.org/trunk@5104 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-25 23:39:14 +00:00
Ryan Boren
a868cae733 Handle robots.txt requests and obey blog_plubic setting.
git-svn-id: https://develop.svn.wordpress.org/trunk@3791 602fd350-edb4-49c9-b593-d223f7449a82
2006-05-22 22:06:06 +00:00
Ryan Boren
b573abbd16 Rewrite API additions and improvements from David House. #2433
git-svn-id: https://develop.svn.wordpress.org/trunk@3638 602fd350-edb4-49c9-b593-d223f7449a82
2006-03-12 22:57:00 +00:00
Ryan Boren
6008a133c4 Death to trailing tabs. Props Mark J. fixes #2405
git-svn-id: https://develop.svn.wordpress.org/trunk@3517 602fd350-edb4-49c9-b593-d223f7449a82
2006-02-12 07:53:23 +00:00
Ryan Boren
016361ea34 Avoid invoking template filters twice. Props David House. fixes #2225
git-svn-id: https://develop.svn.wordpress.org/trunk@3409 602fd350-edb4-49c9-b593-d223f7449a82
2006-01-06 01:09:16 +00:00
Ryan Boren
94804af59a Run attachment filter for themes that don't have single.php or page.php. Props podz. fixes #1924
git-svn-id: https://develop.svn.wordpress.org/trunk@3174 602fd350-edb4-49c9-b593-d223f7449a82
2005-11-21 02:08:59 +00:00
Ryan Boren
1a012b8b49 Renaming. object and subpost are now attachment. post_type is post_mime_type.
git-svn-id: https://develop.svn.wordpress.org/trunk@3092 602fd350-edb4-49c9-b593-d223f7449a82
2005-11-15 22:55:24 +00:00
Ryan Boren
1da25e1927 Image fu from Andy. fixes #1776
git-svn-id: https://develop.svn.wordpress.org/trunk@2958 602fd350-edb4-49c9-b593-d223f7449a82
2005-10-20 20:48:32 +00:00
Ryan Boren
7d6fc8af08 Break blog header up into functional chunks. Stick it all in a WP class for now. Make wp() the front door. Move template/theme loader code into template-loader.php. Clean up feed file loadup. Modularize.
git-svn-id: https://develop.svn.wordpress.org/trunk@2627 602fd350-edb4-49c9-b593-d223f7449a82
2005-06-10 23:15:13 +00:00